Part Number Hot Search : 
11021 PIC16F87 8344A GS1007 HRW0702A WKO680 JH004 TSC80C31
Product Description
Full Text Search
 

To Download RTL8366 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  6/9-port 10/100/1000mbps switch controller datasheet rev. 1.1 05 september 2005 track id: jatr-1076-21 RTL8366/rtl8369
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller ii track id: jatr-1076-21 rev. 1.1 copyright ?2005 realtek semiconductor corp. all rights reserved. no part of this docum ent may be reproduced, transmitted, transcribed, stored in a re trieval system, or translated into any language in any form or by any means without the written permi ssion of realtek semiconductor corp. disclaimer realtek provides this document ?as is?, without warranty of any kind, neither expressed nor implied, including, but not limited to, the particular purpose. realtek may make improvements and/or changes in this document or in the product de scribed in this document at any time. this document could include technical inaccuracies or typographical errors. trademarks realtek is a trademark of realtek semiconductor cor poration. other names men tioned in this document are trademarks/registered trademarks of their respective owners. using this document this document is intended for the hardware and soft ware engineer?s general information on the realtek RTL8366 and rtl8369 chips. though every effort has been made to ensure that this document is current and accurate, more information may have become available subsequent to the production of this guide. in that event, please contact your realtek representative fo r additional information that may help in the development process. revision history revision release date summary 1.0 2005/08/17 first release. 1.1 2005/09/05 change all model numbers rtl8365 to RTL8366. change reference resistor value (see table 7, page 15).
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller iii track id: jatr-1076-21 rev. 1.1 table of contents 1. general desc ription ............................................................................................................ ..................................1 2. features ....................................................................................................................... ..................................................3 3. applications ................................................................................................................... .............................................4 4. block diagram .................................................................................................................. .........................................5 4.1. b lock d iagram of RTL8366........................................................................................................................ ............5 4.2. b lock d iagram of rtl8369........................................................................................................................ ............6 5. application examples ........................................................................................................... ................................7 5.1. 8-p ort 1000b ase -t s witch ............................................................................................................................... .......7 5.2. 5-p ort 1000b ase -t s witch ............................................................................................................................... .......7 5.3. 9-p ort (8 lan+1 wan) 1000b ase -t r outer .........................................................................................................8 5.4. 5-p ort (4 lan+1 wan) 1000b ase -t r outer .........................................................................................................8 6. pin assignments ................................................................................................................ .........................................9 6.1. RTL8366 p in a ssignments ............................................................................................................................... ........9 6.2. p ackage i dentification ............................................................................................................................... ............9 6.3. rtl8369 p in a ssignments ............................................................................................................................... ......10 6.4. p ackage i dentification ............................................................................................................................... ..........10 7. pin descriptions............................................................................................................... ........................................11 7.1. p in t ype c onventions ............................................................................................................................... .............11 7.2. rsgmii p ins ............................................................................................................................... ..............................11 7.3. g eneral p urpose i nterfaces ............................................................................................................................... .12 7.3.1. gmii pins ...................................................................................................................... .......................................12 7.3.2. rgmii pins..................................................................................................................... ......................................13 7.3.3. mii phy mode in terface pins .................................................................................................... ..........................14 7.4. led p ins ............................................................................................................................... ....................................15 7.5. p ower m anagement p ins ............................................................................................................................... .......15 7.6. m iscellaneous p ins ............................................................................................................................... ................15 7.7. c onfiguration s trapping p ins .............................................................................................................................16 7.8. p ower and gnd p ins ............................................................................................................................... ...............17
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller iv track id: jatr-1076-21 rev. 1.1 8. function description ........................................................................................................... ...............................18 8.1. r eset ............................................................................................................................... .........................................18 8.1.1. hardware reset ................................................................................................................. ...................................18 8.1.2. software reset ................................................................................................................. .....................................18 8.2. 802.3 x f ull d uplex f low c ontrol ......................................................................................................................19 8.3. h alf d uplex f low c ontrol ............................................................................................................................... ..20 8.3.1. back-pressure mode (jam_mode=0b0) .............................................................................................. ......20 8.3.2. defer mode (j am_mode=0b1) ...................................................................................................... ................21 8.4. s earch and l earning ............................................................................................................................... .............21 8.5. i llegal f rame f iltering ............................................................................................................................... ........21 8.6. ieee 802.1d r eserved g roup a ddresses f iltering c ontrol ..........................................................................22 8.7. r ealtek r emote c ontrol p rotocol ...................................................................................................................22 8.8. b roadcast s torm c ontrol ............................................................................................................................... ...22 8.9. mib counter ............................................................................................................................... ............................23 8.10. p ort m irroring ............................................................................................................................... .......................24 8.11. led s ............................................................................................................................... ..........................................24 8.11.1. matrix leds .................................................................................................................... ................................24 8.11.2. serial led mode ................................................................................................................ .............................26 8.12. vlan f unction ............................................................................................................................... .......................26 8.12.1. vlan table, configur ation, and mapping......................................................................................... .............26 8.12.2. vlan configuration mode 1 (por t-based vlan a pplication) .......................................................................2 6 8.12.3. vlan configuration mode 2 (802.1q 16 vlan entries application)............................................................29 8.12.4. vlan configuration mode 3 (802.1q 4096 vlan entries application)........................................................30 8.12.5. vlan ingress and egress rules .................................................................................................. ....................32 8.12.6. vlan tagging/u n-tagg ing........................................................................................................ .....................32 8.13. qos............................................................................................................................ ...............................................33 8.13.1. port-based priority ............................................................................................................ .............................33 8.13.2. ieee 802.1p/q-based priority ................................................................................................... .....................33 8.13.3. differentiated servi ce based priority.......................................................................................... ....................34 8.14. p ort p roperty c onfiguration .............................................................................................................................34 8.15. s panning t ree s tatus r egister ...........................................................................................................................35 8.16. phy mii r egister a ccess ............................................................................................................................... .......35 8.16.1. phy mii register read access ................................................................................................... ....................35 8.16.2. phy mii register write access.................................................................................................. .....................35 8.17. l ook - up t able and vlan t able a ccess ............................................................................................................36
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller v track id: jatr-1076-21 rev. 1.1 8.17.1. look-up table read ac cess method (unicast)..................................................................................... ..........38 8.17.2. look-up table write a ccess method (u nicast) .................................................................................... ...........40 8.17.3. look-up table read acces s method (m ulticast) ................................................................................... ..........42 8.17.4. look-up table write a ccess method (m ulticast) .................................................................................. ..........44 8.17.5. vlan table read access method .................................................................................................. .................45 8.17.6. vlan table write access method................................................................................................. ..................46 9. interface de scriptions ......................................................................................................... .............................47 9.1. eeprom smi h ost to eeprom ......................................................................................................................... ..47 9.2. eeprom smi s lave for e xternal cpu..............................................................................................................48 9.3. smi (mdc/mdio) i nterface ............................................................................................................................... ..49 9.4. mac to phy i nterface : rsgmii (r educed s erial g igabit m edia i ndependent i nterface ) ......................49 9.5. g eneral p urpose i nterface ............................................................................................................................... ...51 9.5.1. gmii/mii mac mode (only for 100mbps an d 1000m bps) .............................................................................. ...52 9.5.2. mii mac mode inte rface (100mbps)............................................................................................... ....................53 9.5.3. rgmii mode (only for 1000mbps full duplex)..................................................................................... .............54 9.5.4. mii phy mode (only for 100mbps full duplex).................................................................................... .............55 9.6. p ower m anagement i nterface ............................................................................................................................55 10. register and eeprom descriptions ............................................................................................... .........56 10.1. r egisters l ist p art i.............................................................................................................................. ................56 10.1.1. eeprom mapped registers ........................................................................................................ ...................56 10.2. r egisters l ist p art ii ............................................................................................................................. ...............63 10.3. r egisters d escription p art i.............................................................................................................................. ..69 10.3.1. 0x0000: switch global co ntrol regist er (sgcr) .................................................................................. .........69 10.3.2. 0x0005 ~ 0x0006: vlan/trunk cont rol register 0-1 (vtcr0-1)...................................................................71 10.3.3. 0x0007: port mirror cont rol register (pmcr) .................................................................................... ..........73 10.3.4. 0x0009 ~ 0x000e: qos contro l register 0- 5 (qcr0-5) ............................................................................. ....74 10.3.5. 0x000f ~ 0x0010: mac control packet c ontrol register 0- 1 (mcpcr0-1) .................................................75 10.3.6. 0x0011 ~ 0x0015: port advertising ability control register 0-4 (paacr0 -4) ..............................................76 10.3.7. 0x0016/0018/?/0034: vlan id configur ation register 0-15 (vidcr0-15).................................................77 10.3.8. 0x0017/0019/?/0035: vlan member config uration register 0- 15 (vmcr0-15).........................................78 10.3.9. 0x0036 ~ 0x0037: led contro l register 0- 1 (lcr0-1)............................................................................. .....79 10.3.10. 0x0038 ~ 0x003c: mib counter cont rol register 0-4 (mccr0-4)................................................................79 10.3.11. 0x003d ~ 0x003e: rx spanning tree stat us register 0- 1 (rstsr0-1)..........................................................81 10.3.12. 0x003f: tx spanning tree st atus register (tstsr) ............................................................................... .......81
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller vi track id: jatr-1076-21 rev. 1.1 10.3.13. 0x0046 ~ 0x0048: switch mac addres s register 0-3 (smar0-3) ..................................................................81 10.3.14. 0x004d ~ 0x004e: switch ip addr ess register 0-1 (siar0-1) ...................................................................... .82 10.3.15. 0x0050: port 8 gmii cont rol register (p8gcr)................................................................................... .........82 10.3.16. 0x0058 ~ 0x5a: port vlan index c ontrol register 0-2 (pvicr0-2) .............................................................83 10.4. r egisters d escription p art ii ............................................................................................................................. .84 10.4.1. 0x0100: reset contro l register (rcr)........................................................................................... .................84 10.4.2. 0x0104: chip version co ntrol regist er (cvcr)................................................................................... ..........84 10.4.3. 0x010f: enable vlan table control regist er (evtcr) ............................................................................. ..85 10.4.4. 0x0118 ~ 0x011c: phy access contro l register 0-4 (phyacr0-4)..............................................................85 10.4.5. 0x0120 ~ 0x0155: port n mib counter (pnmib_cnta, pnmib_cntb, and pnmib_cntc; n=0 - 8) ........85 10.4.6. 0x0159 ~ 0x015d: port status register 0-4 (psr0-4) ............................................................................. .......87 10.4.7. 0x0170: eeprom status register (eepsr) ......................................................................................... ..........89 10.4.8. 0x0180 ~ 0x018a: lookup and vlan table engine ac cess control..............................................................89 11. electrical cha racteristics..................................................................................................... .................90 11.1. a bsolute m aximum r atings ............................................................................................................................... .90 11.2. o perating r ange ............................................................................................................................... .....................90 11.3. t hermal c haracteristics ............................................................................................................................... ......90 11.4. dc c haracteristics ............................................................................................................................... ................90 11.5. ac c haracteristics ............................................................................................................................... ................91 11.5.1. eeprom smi (sck/sda) timi ng characteristics.................................................................................... .....91 11.5.2. smi (mdc/mdio) timing characteristics.......................................................................................... ...........91 11.5.3. gmii/mii timing characteri stics ................................................................................................ ...................92 11.5.4. rgmii timing char acteristics ................................................................................................... .....................93 12. mechanical dimensions.......................................................................................................... .......................95 13. ordering information ........................................................................................................... ........................96
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller vii track id: jatr-1076-21 rev. 1.1 list of tables t able 1. rsgmii p ins ............................................................................................................................... ................................11 t able 2. gmii p ins ............................................................................................................................... .....................................12 t able 3. rgmii p ins ............................................................................................................................... ..................................13 t able 4. mii phy m ode i nterface p ins ............................................................................................................................... ..14 t able 5. led p ins ............................................................................................................................... ......................................15 t able 6. p ower m anagement p ins ............................................................................................................................... ..........15 t able 7. m iscellaneous p ins ............................................................................................................................... ...................15 t able 8. c onfiguration s trapping p ins ............................................................................................................................... .16 t able 9. p ower and gnd p ins ............................................................................................................................... ..................17 t able 10. f low c ontrol r esolution t ruth t able ...............................................................................................................19 t able 11. led m ode c onfiguration ............................................................................................................................... ........24 t able 12. pvid of e ach p ort ? s d efault c onfiguration w hen en_vlan=0 b 1................................................................26 t able 13. m ember s et of e ach vlan g roup d efault c onfiguration w hen en_vlan=0 b 1 ........................................27 t able 14. pvid of e ach p ort c onfiguration w hen en_vlan=0 b 1 and en_vlan_tbl=0 b 1......................................30 t able 15. ip v 4 f rame f ormat ............................................................................................................................... ....................34 t able 16. ip v 6 f rame f ormat ............................................................................................................................... ....................34 t able 17. p ort a bility r egister ............................................................................................................................... ...............34 t able 18. s panning t ree s tatus : p ort s tate b ehavior .........................................................................................................35 t able 19. d ata i nput /o utput b uffer f ormat and r egister m apping ................................................................................36 t able 20. s ummary f ormat for l ookup and vlan t able a ccess i nput d ata b uffer (wd[69:0]).................................37 t able 21. s ummary f ormat for l ookup and vlan t able a ccess o utput d ata b u f f e r (rd[47:0])...............................38 t able 22. mac a ddress f ormat ............................................................................................................................... ...............38 t able 23. d ata i nput b uffer (wd[63:0]) f ormat for l ookup t able r ead a ccess ...........................................................39 t able 24. d ata o utput b uffer (rd[47:0]) f ormat for l ookup t able u nicast e ntry r ead a ccess ..............................39 t able 25. d ata o utput b uffer (rd[47:0]) f ormat for l ookup t able u nicast e ntry r ead a ccess ..............................41 t able 26. m ulticast mac a ddress r ange and f ormat .......................................................................................................42 t able 27. d ata i nput b uffer (wd[63:0]) f ormat for l ookup t able m ulticast e ntry r ead a ccess ............................42 t able 28. d ata o utput b uffer (rd[47:0]) f ormat for l ookup t able m ulticast e ntry r ead a ccess ..........................43 t able 29. d ata i nput b uffer (wd[69:0]) f ormat for l ookup t able m ulticast e ntry w rite a ccess ...........................44 t able 30. d ata o utput b uffer (rd[8:0]) f ormat for vlan t able r ead a ccess .............................................................45 t able 31. d ata o utput b uffer (wd[24:0]) f ormat for vlan t able w rite a ccess .........................................................46 t able 32. smi f rame f ormat ............................................................................................................................... ....................49
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller viii track id: jatr-1076-21 rev. 1.1 t able 33. gmii/rgmii/mii phy m ode p ins ............................................................................................................................51 t able 34. eeprom m apped r egisters ............................................................................................................................... .....56 t able 35. r egisters l ist p art ii ............................................................................................................................. ..................63 t able 36. 0 x 0000: s witch g lobal c ontrol r egister (sgcr) .............................................................................................69 t able 37. 0 x 0005 ~ 0 x 0006: vlan/t runk c ontrol r egister 0-1 (vtcr0-1) .....................................................................71 t able 38. 0 x 0007: p ort m irror c ontrol r egister (pmcr) .................................................................................................73 t able 39. 0 x 0009 ~ 0 x 000e: q o s c ontrol r egister 0-5 (qcr0-5) .......................................................................................74 t able 40. 0 x 000f ~ 0 x 0010: mac c ontrol p acket c ontrol r egister 0-1 (mcpcr0-1)...................................................75 t able 41. 0 x 0011 ~ 0 x 0015: p ort a dvertising a bility c ontrol r egister 0-4 (paacr0-4) ..............................................76 t able 42. 0 x 0016/0018/?/0034: vlan id c onfiguration r egister 0-15 (vidcr0-15).....................................................77 t able 43. 0 x 0017/0019/?/0035: vlan m ember c onfiguration r egister 0-15 (vmcr0-15) ...........................................78 t able 44. 0 x 0036 ~ 0 x 0037: led c ontrol r egister 0-1 (lcr0-1)........................................................................................79 t able 45. 0 x 0038 ~ 0 x 003c: mib c ounter c ontrol r egister 0-4 (mccr0-4) ..................................................................79 t able 46. 0 x 003d ~ 0 x 003e: rx s panning t ree s tatus r egister 0-1 (rstsr0-1)..............................................................81 t able 47. 0 x 003f: tx s panning t ree s tatus r egister (tstsr)...........................................................................................81 t able 48. 0 x 0046 ~ 0 x 0048: s witch mac a ddress r egister 0-3 (smar0-3) ......................................................................81 t able 49. 0 x 004d ~ 0 x 004e: s witch ip a ddress r egister 0-1 (siar0-1).............................................................................82 t able 50. 0 x 0050: p ort 8 gmii c ontrol r egister (p8gcr) .................................................................................................82 t able 51. 0 x 0058 ~ 0 x 005a: p ort vlan i ndex c ontrol r egister 0-2 (pvicr0-2)............................................................83 t able 52. 0 x 0100: r eset c ontrol r egister (rcr) ................................................................................................................84 t able 53. 0 x 0104: c hip v ersion c ontrol r egister (cvcr) .................................................................................................84 t able 54. 0 x 010f: e nable vlan t able c ontrol r egister (evtcr) .................................................................................85 t able 55. 0 x 0118 ~ 0 x 011c: phy a ccess c ontrol r egister 0-4 (phyacr0-4) ..................................................................85 t able 56. 0 x 0120 ~ 0 x 0155: p ort n mib c ounter (p n mib_cnta, p n mib_cntb, and p n mib_cntc; n =0 - 8) .............85 t able 57. 0 x 0159 ~ 0 x 015d: p ort s tatus r egister 0-4 (psr0-4) ..........................................................................................87 t able 58. 0 x 0170: eeprom s tatus r egister (eepsr) ..........................................................................................................89 t able 59. 0 x 0180 ~ 0 x 018a: l ookup and vlan t able e ngine a ccess c ontrol ................................................................89 t able 60. a bsolute m aximum r atings ............................................................................................................................... ....90 t able 61. o perating r ange ............................................................................................................................... .......................90 t able 62. dc c haracteristics ............................................................................................................................... ..................90 t able 63. gmii/mii t iming c haracteristics .........................................................................................................................92 t able 64. rgmii t iming c haracteristics ..............................................................................................................................9 4 t able 65. o rdering i nformation ............................................................................................................................... ..............96
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller ix track id: jatr-1076-21 rev. 1.1 list of figures f igure 1. b lock d iagram of RTL8366........................................................................................................................ .............5 f igure 2. b lock d iagram of rtl8369........................................................................................................................ .............6 f igure 3. 8-p ort 1000b ase -t s witch ............................................................................................................................... .........7 f igure 4. 5-p ort 1000b ase -t s witch ............................................................................................................................... .........7 f igure 5. 9-p ort (8 lan+1 wa n ) 1000b ase -t r outer ...........................................................................................................8 f igure 6. 5-p ort (4 lan+1 wa n ) 1000b ase -t r outer ...........................................................................................................8 f igure 7. RTL8366 p in a ssignments ............................................................................................................................... ..........9 f igure 8. rtl8369 p in a ssignments ............................................................................................................................... ........10 f igure 9. m at r i x led i nterconnections .............................................................................................................................25 f igure 10. b i -c olor led s ............................................................................................................................... ..........................25 f igure 11. p ort -b ased vlan a pplication e xample .............................................................................................................28 f igure 12. t agged /u ntagged p acket f orwarding w hen vlan_tag_aware is e nabled ............................................29 f igure 13. 4096 vlan t able f ormat ............................................................................................................................... .......30 f igure 14. t agged /u ntagged p acket f orwarding w hen vlan_tag_aware and en_vlan_tbl are e nabled ...31 f igure 15. eeprom smi h ost to eeprom ......................................................................................................................... ..47 f igure 16. h ost m ode eeprom smi f rame ...........................................................................................................................47 f igure 17. eeprom smi s equential r ead ............................................................................................................................48 f igure 18. eeprom smi w rite c ommand for s lave m ode .................................................................................................48 f igure 19. eeprom smi r ead c ommand for s lave m ode ..................................................................................................48 f igure 20. rsgmii i nterconnection d iagram ......................................................................................................................50 f igure 21. s ignal d iagram of gmii m ode i nterface (1000m bps ) ......................................................................................52 f igure 22. s ignal d iagram of mii mac m ode i nterface (100m bps ) .................................................................................53 f igure 23. s ignal d iagram of rgmii m ode i nterface ........................................................................................................54 f igure 24. s ignal d iagram of mii phy m ode i nterface (100m bps f ull ) .........................................................................55 f igure 25. gmii/mii t iming c haracteristics ........................................................................................................................92 f igure 26. rgmii t iming c haracteristics .............................................................................................................................93
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 1 track id: jatr-1076-21 rev. 1.1 1. general description the RTL8366 and rtl8369 are 128-pin, ultra-low-power , high-performance 5/8-port gigabit ethernet switches, with one extra gmii/mii/rg mii port for specific applications. they integrate all the functions of a high speed switch system; including sram fo r packet buffering, non-bloc king switch fabric, and internal register management into a single 0.15m cm os device. only a 25mhz crystal is re quired; an optional eeprom is offered for in ternal register configuration. the embedded packet storage sram in the r tl8366/8369 features superior memory management technology to efficiently utilize memory space. an integrated 4k-entry look-up table stores mac addresses and associated informa tion in a 12-bit direct mapping sche me. the table provides read/write access from the eeprom serial management interface (s mi), and each of the entries can be configured as a static entry. the entry aging time is between 200 and 400 seconds. the rtl8369 implements a 4 channel reduced serial gigabit media independent interface (rsgmii) 2.5ghz serial differential interface that connects with 4 rtl8212?s. each channel carries 2gbps of data to and from the rtl8212. the rs gmii interfaces help reduce p cb size and layout complexity. the 6/9th port of the RTL8366/8369 implements a gmii/mii/rgmii interface for connecting with an external phy or mac in specific applications. this in terface could be connected to an external cpu or risc in 1 wan + 4 lan or 1 wa n + 8 lan router applications. in router applications, the RTL8366/8369 supports port vid (pvid) for each port to insert a pvid in the vlan tag on egress. when using this function, vid information carried in the vlan tag will be changed to pvid. the RTL8366/8369 supports standard 802.3x flow c ontrol frames for full duplex, and optional backpressure for half duplex. it determines when to invoke the flow control mechanism by checking the availability of system resources, including packet buffers and transmitting queues. if one of the forwarding ports are blocked, or system resources are unavailable, broadcast frames will be dropped according to the system configuration. the RTL8366/8369 supports two dropping methods: ? the input dropping method will not forward broadcas t packets to any output ports and will drop these packets directly. ? the output dropping method will forward broadcast packets to non-blocked ports only.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 2 track id: jatr-1076-21 rev. 1.1 to improve real-time and multimedia networking applications, the RTL8366/8369 supports three types of qos (quality of service). th ese are based on (1) port-based priority, (2) 802.1p/q vlan priority tag, (3) tos field in the ipv4 header. each output por t supports a weighted ra tio of high-priority and low-priority queues to fit bandwidth requirements in various applications. the RTL8366/8369 provides a 4k-entry vlan tabl e for 802.1q port-based and tag-based vlan operation to separate logical conne ctivity from physical connectivity . each port may be set to any topology via eeprom upon reset, or eeprom smi af ter reset. the RTL8366/8369 also provides options to meet special application requirements. the first opti on is the arp vlan function, which is used to select to broadcast arp frames to all vl ans, or only forward arp fr ames to the originating vlan. the second option is the lea ky vlan function, which sends unica st frames to other vlans, or only forwards unicast frames to the originating vlan. the vlan tags can be inserted or removed on a per-port basis.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 3 track id: jatr-1076-21 rev. 1.1 2. features ? 6/9-port gigabit non -blocking switch architecture ? each port supports full duplex 10/100/1000m connectivity (half duplex only supported in 10/100m mode) ? ieee 802.3x flow control with asymmetric flow control ability ? 1mbit sram for packet buffer ? 4k-entry sram mac lookup table ? supports 9kbyte jumbo frame packet forwarding ? integrates 4 pairs of 2.5ghz high-speed serial links ? supports spanning tree port status behavior configuration ? extra interface ( port 6/9) supports: ? media independent interface (mii) (supports 100mbps only) ? gigabit media independent interface (gmii) (supports 1000mbps only) ? reduced gigabit media independent interface (rgmii) (supports 1000mbps only) ? vlan ? 802.1q vlan support for 4096 entries ? supports port-based vlan ? supports per-port egress vlan tagging and un-tagging ? qos ? two levels of queue priority ? priority determined by port, 802.1q vlan tag, ip tos/ds field ? security filtering ? disable learning for each port ? disable learning-table aging for each port ? drop unknown da for each port ? broadcast storm control protects system from attack by broadcast packets ? supports matrix leds and serial leds ? port mirroring ? mirror to any port ? tx and rx separated ? supports mib counters with 3x32bits/per port ? supports eeprom smi to access configuration register ? supports 256 bytes eeprom space for configuration ? 25mhz crystal or 1.8v osc input ? low power, 1.8/3.3v, 0.15 m cmos process, 128-pin pqfp package
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 4 track id: jatr-1076-21 rev. 1.1 3. applications ? 5/8-port 1000base-t switch ? 1 wan + 4 lan, or 1 wan + 8 lan 1000base- t router or mimo-gateway application
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 5 track id: jatr-1076-21 rev. 1.1 4. block diagram 4.1. block diagram of RTL8366 RTL8366 function block diagram mii/ gmii/ rgmii 2.5ghz serdes p0 gmac p1 gmac 2.5ghz serdes p2 gmac p3 gmac 2.5ghz serdes p4 gmac p5 gmac 1 mb packet buffer sram 4k mac address table linking lists sram controller queue managment lookup engine smi power management controller control registers + mib counter 4096 vlan table pll 25mhz crystal power management interface 25mhz_out[3:0] sck/sda mdc/mdio pcs pcs pcs mux mii/gmii/ rgmii i 2 c host i 2 c slave rsgmii rsgmii rsgmii figure 1. block diagram of RTL8366
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 6 track id: jatr-1076-21 rev. 1.1 4.2. block diagram of rtl8369 rtl8369 function block diagram mii/ gmii/ rgmii 2.5ghz serdes p0 gmac p1 gmac 2.5ghz serdes p2 gmac p3 gmac 2.5ghz serdes p4 gmac p5 gmac 2.5ghz serdes p6 gmac p7 gmac p8 gmac 1 mb packet buffer sram 4k mac address table linking lists sram controller queue managment lookup engine smi power management controller control registers + mib counter 4096 vlan table pll 25mhz crystal power management interface 25mhz_out[3:0] sck/sda mdc/mdio pcs pcs pcs pcs mux mii/gmii/ rgmii i 2 c host i 2 c slave rsgmii rsgmii rsgmii rsgmii figure 2. block diagram of rtl8369
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 7 track id: jatr-1076-21 rev. 1.1 5. application examples 5.1. 8-port 1000base-t switch rtl8369 rtl8212 rtl8212 rtl8212 rtl8212 rsgmii 8-port 1000base-t switch figure 3. 8-port 1000base-t switch 5.2. 5-port 1000base-t switch RTL8366 rtl8212 rtl8212 rtl8211 rsgmii 5-port 1000base-t switch figure 4. 5-port 1000base-t switch
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 8 track id: jatr-1076-21 rev. 1.1 5.3. 9-port (8 lan+1 wan) 1000base-t router figure 5. 9-port (8 lan+1 wan) 1000base-t router 5.4. 5-port (4 lan+1 wan) 1000base-t router figure 6. 5-port (4 lan+1 wan) 1000base-t router
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 9 track id: jatr-1076-21 rev. 1.1 6. pin assignments 6.1. RTL8366 pin assignments 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 vssa_pll x1 x2 vdda_pll vdda reserved reserved vssa reserved vssa reserved reserved vdda vdda s2rxp s2rxn vssa clk25_out2 vssa s2txp s2txn vdda vdda_clk vssa_clk reset# vssio 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 p8txd5/a2/p8_phy_spd[1] p8txd4/a3/internal_use p8txd3/a4/grxc_delay p8txd2/a5/gpif_mode[2] p8txd1/a6//gpif_mode[1] p8txd0/a7//gpif_mode[0] p8txen/a12/dis_fc vddio p8gtxc/a15/gtxc_delay vssio p8txer/a16/p8_phy_link p8txc/we# vss_core p8crs/a17 vdd_core p8col/a14 p8rxer/a13 p8rxc/a8 p8rxdv/a9 p8rxd0/a11 p8rxd1/d0 p8rxd2/d1 vddio p8rxd3/d2 vssio p8rxd4/d3 p8rxd5/d4 p8rxd6/d5 p8rxd7/d6 d7 ce#/reserved a10/en_mlt_fwd rd# uartrx/reserved a18/internal_use vssio a19/internal_use vddio vdd12_fb vdda_reg reg12_gl reg12_gh reg12_phase reg18_phase reg18_gl reg18_gh vssa_reg vdd18_fb vdd18_in vdd18_in vss_core vdd_core vssio vddio sda sck/uarttx leda0 leda1 vdd_core leda2 vss_core leda3 leda4 leda5 vddio vssio leda6 leda7 leda8 ledb3/internal use ledb2/internal use ledb1/led_sda/gpif_mode[4] ledb0/led_sck/gpif_mode[3] mdc/reserved mdio vddio vdda s0txn s0txp vssa clk25_out0 vssa s0rxn s0rxp vdda vdda s1txn s1txp vssa clk25_out1 vssa s1rxn s1rxp vdda vdda_clk vssa_clk vddio p8txd7/a0/led_mode[1] vssio p8txd6/a1/led_mode[0] rref vdda_rref RTL8366 lllllll txxxx xxxxxx figure 7. RTL8366 pin assignments 6.2. package identification green package is indicated by a ?g? in the location marked ?t? in figure 7.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 10 track id: jatr-1076-21 rev. 1.1 6.3. rtl8369 pin assignments figure 8. rtl8369 pin assignments 6.4. package identification green package is indicated by a ?g? in the location marked ?t? in figure 8.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 11 track id: jatr-1076-21 rev. 1.1 7. pin descriptions 7.1. pin type conventions the signal type codes below are used in the following tables: i: input d: digital o: output pu: internal pull-up a: analog pd: internal pull-down 7.2. rsgmii pins table 1. rsgmii pins pin name pin no. type description s0rxp, s0rxn, s1rxp, s1rxn, s2rxp, s2rxn, s3rxp, s3rxn 112, 111, 121, 120, 48, 47, 57, 56 ai differential input: 2.5ghz serial interface s to transfer data from an rtl8212 to the RTL8366/rtl8369. for the rtl8369: ?s0rxp, s0rxn? conveys the traffic of port0 and port1 ?s1rxp, s1rxn? conveys the traffic of port2 and port3 ?s2rxp, s2rxn? conveys the traffic of port4 and port5 ?s3rxp, s3rxn? conveys the traffic of port6 and port7 for RTL8366: ?s0rxp, s0rxn? conveys the traffic of port0 and port1 ?s1rxp, s1rxn? conveys the traffic of port2 and port3 ?s2rxp, s2rxn? conveys the traffic of port4 ?s3rxp, s3rxn? are not available these pins must be pulled low with a 1k ohm resistor when not used. s0txp, s0txn, s1txp, s1txn, s2txp, s2txn, s3txp, s3txn 107, 106, 116, 115, 43, 42, 52, 51 ao differential output: 2.5ghz serial in terfaces to transfer data from the RTL8366/rtl8369 to an rtl8212. for the rtl8369: ?s0txp, s0txn? conveys the traffic of port0 and port1 ?s1txp, s1txn? conveys the traffic of port2 and port3 ?s2txp, s2txn? conveys the traffic of port4 and port5 ?s3txp, s3txn? conveys the traffic of port6 and port7 for RTL8366: ?s0txp, s0txn? conveys the traffic of port0 and port1 ?s1txp, s1txn? conveys the traffic of port2 and port3 ?s2txp, s2txn? conveys the traffic of port4 ?s3txp, s3txn? are not available
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 12 track id: jatr-1076-21 rev. 1.1 pin name pin no. type description clk25_out[3:0] 54, 45, 118, 109 o for the rtl8369: clk25_out[3:0] are 25mhz reference clock outputs for the rsgmii interface. 1.8v dc signal. for the RTL8366: clk25_out[2:0] are 25mhz reference clock outputs for the rsgmii interface. 1.8v dc signal. clk25_out[3] is not available. 7.3. general purpose interfaces general purpose interfaces include gmii mac, mii mac, rgmii, and mii phy interfaces. the interfaces are selected by the pulling up or down of gpif_mode[4:0] pins upon power on. interface selection may also be configured by register access after power on. 7.3.1. gmii pins when port8 is linked at 1000mbps, the interface w ill be gmii. when port8 is linked at 100mbps, the interface will be mii. 1000mbps half duplex and 10m bps mode are not supported in this configuration. table 2. gmii pins pin name pin no. type description p8txd[7:0] 126, 128, 1, 2, 3, 4, 5, 6 o transmit data output (gmii/mii mode). transmits data synchronously to the rising edge of p8gtxc. in 100mbps mii mac mode, only p8txd[3:0] are available. p8txen 7 o transmit data enable (gmii/mii mode). transmit enable that is sent synchronou sly at the rising edge of p8gtxc in gmii mode. transmit enable that is sent synchronou sly at the rising edge of p8txc in 100mbps mii mac mode. p8gtxc 9 o gmii transmit clock (gmii mode). 125mhz transmit clock output when gmii is operating at 1000mbps. used for p8txd[7:0] and p8txen synchronization. p8txer 11 o transmit data error (gmii/mii mode). p8txc 12 i mii transmit clock (mii mode). 25mhz clock driven by phy when operating in 100mbps mii mac mode. p8txd[3:0], p8txen and p8txer will be synchronized with p8txc in this mode. this pin must be pulled low with a 1k ohm resistor in gmii mode configuration. p8crs 14 i carrier sense input (mii mode). p8crs is only valid in 100mbps mii mac half duplex mode. it is asserted high when a valid carrier is detected on the media. this pin must be pulled low with a 1k ohm resistor when not used.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 13 track id: jatr-1076-21 rev. 1.1 pin name pin no. type description p8col 16 i collision detect input (mii mode). p8col is only valid in 100mbps mii mac half duplex mode. it is asserted high when a collision is detected on the media. this pin must be pulled low with a 1k ohm resistor when not used. p8rxer 17 i receive data error. (gmii/mii mode) indicates that the receiving data is erro r. the switch filters the receiving packet once the p8rxer is asserted at the rising edge of p8rxc. valid both in gmii mode and 100mbps mii mac mode. this pin must be pulled low when not used. p8rxc 18 i gmii/mii receive clock input (gmii/mii mode). in gmii mode: 125mhz r eceive clock. used to synchronize p8rxd[7:0], p8rxer, and p8rxdv. in mii 100mbps mode. p8rxc is 25mhz. used to synchronize p8rxd[3:0], p8rxer , p8rxdv, p8crs, and p8col. this pin must be pulled low with a 1k ohm resistor when not used. this pin must be pulled low with a 1k ohm resistor in gmii and rgmii mode configuration. p8rxdv 19 i receive data valid input (gmii/mii mode). receive data valid that is received sync hronously at the rising edge of p8rxc in both gmii and 100mbps mii mac mode. this pin must be pulled low with a 1k ohm resistor when not used. p8rxd[7:0] 29, 28, 27, 26, 24, 22, 21, 20 i receive data input (gmii/mii mode). receive data that is received synchrono usly at the rising edge of p8rxc. in 100mbps mii mac mode, only p8rxd[3:0] are available. these pins must be pulled low with a 1k ohm resistor when not used. p8rxd[7:4] pins must be pulled low with a 1k ohm resistor in rgmii and mii mode configuration. 7.3.2. rgmii pins the rgmii interface only supports 1000mbps full d uplex mode. 10/100mbps are not supported by this interface. table 3. rgmii pins pin name pin no. type description p8txd[3:0] 3, 4, 5, 6 o rgmii transmit data. transmits data bus synchronously to p8gtxc. p8txctrl 11 o rgmii transmit control signal. the p8txctrl indicates p8txen at th e rising edge of p8txc and p8txer; at the falling edge of p8txc. at p8gxtc falling edge, p8txctrl=p8txen (xor) p8txer. p8txc 9 o rgmii transmit clock. when port 8 is linked at 1000mbps: p8txc is 125mhz. used for p8txd[3:0] and p8txctrl synchronization at p8txc on both rising and falling edges.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 14 track id: jatr-1076-21 rev. 1.1 pin name pin no. type description p8rxc 18 i rgmii receive clock. when port 8 is linked at 1000mbps: p8rxc is 125mhz. used for p8rxd[3:0] and p8rxctrl synchronization at both p8rxc rising and falling edge. this pin must be pulled low with a 1k ohm resistor when not used. p8rxctrl 17 i rgmii transmit control signal. the p8rxctrl indicates p8rxdv at the rising of p8rxc and p8rxer at the falling edge of p8rxc. at p8rxc falling edge, p8rxctrl=p8rxdv (xor) p8rxer. this pin must be pulled low with a 1k ohm resistor when not used. p8rxd[3:0] 24, 22, 21, 20 i rgmii receive data. transmits data bus synchronously to p8rxc. these pins must be pulled low with a 1k ohm resistor when not used. 7.3.3. mii phy mode interface pins table 4. mii phy mode interface pins pin name pin no. type description p8prxd[3:0] 3, 4, 5, 6 o mii phy mode receive data. output data bus to mac, synchronous to the rising edge of p8prxc. p8prxdv 7 o mii phy mode receive data valid. output data valid signal to mac, synchronous to the rising edge of p8prxc. p8prxc 9 o mii phy mo de receive clock. in mii 100mbps phy mode, p8prxc is 25mhz clock output. in mii 10mbps phy mode, p8prxc is 2.5mhz clock output. used to synchronize p8prxd[3:0] and p8prxdv. p8ptxer 17 i mii phy mode transmit error. this pin must be pulled low with a 1k ohm resistor when not used. p8ptxc 18 i mii phy mode transmit clock. transmit clock input from mii mac is used for p8ptxd[3:0] and p8ptxen synchronization. in mii 100mbps phy mode, p8ptxc is 25mhz clock input. in mii 10mbps phy mode, p8ptxc is 2.5mhz clock input. this pin must be pulled low with a 1k ohm resistor when not used. p8ptxen 19 i mii phy mode transmit data enable. transmit enable input from mii mac is synchronous at the rising edge of p8ptxc. this pin must be pulled low with a 1k ohm resistor when not used. p8ptxd[3:0] 24, 22, 21, 20 i mii phy mode transmit data. transmit data input bus from mii mac are synchronous to the rising edge of p8ptxc. these pins must be pulled low with a 1k ohm resistor when not used.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 15 track id: jatr-1076-21 rev. 1.1 7.4. led pins table 5. led pins pin name pin no. type description leda[8:0] 72, 73,74, 77, 78, 79, 81, 83, 84 o pu when configuration register led_mode[1:0]=0b00 or 0b01, leda[8:0] is driven low to enable port status in matrix led applications. when configuration register led_mode [1:0]=0b10, leda[8:0 ] associates the ledb0 for bi-color led application. ledb[3:0] 71, 70, 69, 68 i/o pu i/o pd i/o pd i/o pd when configuration register led_mode=0b00 or 0b01, the ledb[3:0] indicates the status bit 0 of matrix led application. when configuration register led_mode=0b10, the ledb0 is used for bi- color led. when configuration register led_mode=0b11, ledb0 drives the clock for serial led applications, and ledb1 drives data for serial led applications. 7.5. power management pins table 6. power management pins pin name pin no. type description reg18_gh 95 ao tbd (floating when not used) reg18_gl 96 ao tbd (floating when not used) reg18_phase 97 ai tbd (pull down with a 1k ohm resistor when not used) reg12_gh 99 ao tbd (floating when not used) reg12_gl 100 ao tbd (floating when not used) reg12_phase 98 ai tbd (pull down with a 1k ohm resistor when not used) vdd18_fb 93 ai tbd (pull down with a 1k ohm resistor when not used) vdd12_fb 102 ai tbd (pull down with a 1k ohm resistor when not used) 7.6. miscellaneous pins table 7. miscellaneous pins pin name pin no. type description mdc 67 i/o pd mii management interface clock pin. mdio 66 i/o mii management interface data pin. sck 85 i/o pd clock of eeprom smi. eeprom interface when gpif_mode[4:0] != 0b01000. sda 86 i/o data of eeprom smi. eeprom interface when gpif_mode[4:0] != 0b01000. x1, x2 61, 60 a 1.8v 25mhz crystal clock input and feedback pins. rref 103 a reference resistor. a 2.49k ohm (1%) resistor should be connected between rref and gnd. reset# 64 di system pin reset input. low active use to reset RTL8366/rtl8369.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 16 track id: jatr-1076-21 rev. 1.1 7.7. configuration strapping pins table 8. configuration strapping pins pin name pin no. default description p8rxc_delay 3 0b1 0b1: adds a 1.5ns delay at p8rxc (rgmii only) internal pull high with a 75k ohm resistor. p8txc_delay 9 0b1 0b1: adds a 1.5ns delay at p8rxc (rgmii only) internal pull high with a 75k ohm resistor. reserved 37, 35 0b00 n/a internal pull down with a 75k ohm resistor. gpif_mode[4:0] 69, 68, 4, 5, 6 0b11000 0b11000: gmii/mii mac mode. 0b11001: rgmii. 0b11100: mii phy mode. others: reserved if the general purpose interface is in mii phy mode, then it is full duplex. flow control setting is from eeprom. gpif_mode[2:0] are internal pull down with a 75k ohm resistor. gpif_mode[4:3] are internal pull high with a 75k ohm resistor. note 1: gmii/mii mac mode does not support 10mbps. note 2: mii phy mode only supports 100mbps full duplex. reserved 31, 34, 67 0b000 n/a internal pull down with a 75k ohm resistor. internal use 70 0b0 n/a internal pull down with a 75k ohm resistor. internal use 71 0b0 n/a internal pull down with a 75k ohm resistor. dis_fc 7 0b0 0b0: enable all ports 802.3x flow control ability. 0b1: disable all ports 802.3x flow control ability. internal pull down with a 75k ohm resistor. led_mode[1:0] 126, 128 0b00 0b00: matrix mode type 1 ledb[3:0]=100m, 1000m, link/act, duplex/col 0b01: matrix mode type 2 ledb[3:0]=10m link/act, 100m link/act, 1000m link/act, duplex/col 0b10: bi-color matrix mode ledb[3:0]=n/a, n/a, n/a, (1000m+link/act, 100m/10m+link/act) 0b11: serial led mode ledb0 is led_clk and ledb1 is led_data. internal pull down with a 75k ohm resistor. for a detailed description, see section 8.11 led, page 24.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 17 track id: jatr-1076-21 rev. 1.1 pin name pin no. default description en_mlt_fwd 32 0b1 0b0: discard 802.1d reserve control frame (01-80-c2-00-00-04 ~ 01-80- c2-00-00-ff) 0b1: forward 802.1d reserve control frame (01-80-c2-00-00-04 ~ 01-80- c2-00-00-ff) 01-80-c2-00-00-01 and 01-80-c2-00-00-02: drop (default) 01-80-c2-00-00-00 and 01-80-c2-00-00-03: forward (default) internal pull high with a 75k ohm resistor. p8_phy_link 11 0b0 to configure port 8 phy mode link status when gpif_mod[4:0]=0b11100. 0b0: phy mode link down 0b1: phy mode link up internal pull down with a 75k ohm resistor. reserved 2 0b0 n/a internal pull down with a 75k ohm resistor. 7.8. power and gnd pins table 9. power and gnd pins pin name pin no. description vdd_core 15, 82, 89 power for digital circuit. 1.5v dc input when internal linear regulator is disabled. when internal linear regulator is enabled, these pins must connect to ground via bypass capacitors. vss_core 13, 80, 90 ground for digital circuit. vddio 8, 23, 38, 65, 76, 87,125 power for i/o pads. 3.3v dc input. vssio 10, 25, 36, 63, 75, 88, 127 ground for i/o pads. vdda 41, 49, 50, 58, 105, 113, 114, 122 power for rsgmii. 1.8v dc input. vssa 44, 46, 53, 55, 108, 110, 117, 119 ground for rsgmii. vdda_clk 40, 123 power for rsgmii 25mhz output clock. 1.8v dc input. vssa_clk 39, 124 ground for rsgmii 25mhz output clock. vdda_reg 101 power for power management. 3.3v dc input. connect to system ground when not use. vssa_reg 94 ground for power management. vdda_pll 59 power for pll. 1.8v dc input. vssa_pll 62 ground for pll. vdda_rref 104 power for reference resister. 3.3v dc input. vdd18_in 91, 92 power for linear regulator circuit. dc 1.8v input. if these pins are left floating, the inte rnal 1.5v linear regulator is disabled. vdd18_fb 93 tbd. pull down with 1k ohm resistor. vdd12_fb 102 tbd. pull down with 1k ohm resistor.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 18 track id: jatr-1076-21 rev. 1.1 8. function description 8.1. reset 8.1.1. hardware reset in a power-on reset, an internal power-on reset pulse will be generated and the RTL8366/rtl8369 will start the reset initializatio n procedures. these are: ? determine various default settings via the hardware strap pins at the end of the reset# signal. ? auto load the configuration from eeprom if eeprom is detected (approx. 8ms). ? complete the embedded sram bist process. ? initialize the packet buffer descriptor allocation. ? initialize the internal registers and prepar e them to be accessed by the external cpu. ? start mdc/mdio configuration and polling. note 1: to guarantee register a ccess is valid and corre ct, the RTL8366/rtl8369 registers should not be accessed before the reset initialization process is finished. note 2: the connected phy should have complete d the reset process befo re the RTL8366/rtl8369 starts the mdc/mdio confi guration and polling process. 8.1.2. software reset the RTL8366/rtl8369 supports two software re sets; a chip reset and a soft reset. chip_reset when chip_reset in register rcr ( 0x0100) is set to 0b1 (w rite and self clear) , the chip will make the following steps: 1. download configuration from strap pin and eeprom. 2. start embedded sram bi st (built-in self test). 3. clear all the lookup and vlan tables. 4. reset all register s to default values. 5. restart auto-negotiation process.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 19 track id: jatr-1076-21 rev. 1.1 soft_reset when set soft_reset in register rcr (0x0100) is se t to 0b1 (write and self clear), the chip will complete the following steps: 1. restart the auto -negotiation process. 2. clear the fifo and re-s tart packet buffer link list. 8.2. 802.3x full duplex flow control the RTL8366/8369 supports ieee 802.3x flow control in 10/100/1000m modes. flow control can be decided in two ways: ? when auto-negotiation is enabled, depends on the result of nway. ? when auto-negotiation is disabled, depends on the register paacr0-4 (0x0011~ 0x0015), port_abilityn[7:6] (n: 0 - 8). the RTL8366/8369 supports asymmetrical flow c ontrol in 1000mbps mode. the auto-negotiation module checks the flow control ability of the phy mii register 4, 9 and thos e of its link partner to resolve the flow control mode. the following shows the flow c ontrol resolution truth table. table 10. flow control resolution truth table local device link partner pause asm_dir pause asm_dir local device resolution local partner resolution 0 0 irrelevant irrelevant disable pause transmit and receive disable pause transmit and receive 0 1 0 irrelevant disable pause transmit and receive disable pause transmit and receive 0 1 1 0 disable pause transmit and receive disable pause transmit and receive 0 1 1 1 enable pause transmit disable pause receive enable pause receive disable pause transmit 1 0 0 irrelevant disable pause transmit and receive disable pause transmit and receive 1 irrelevant 1 irrelevant enable pause transmit and receive enable pause transmit and receive 1 1 0 0 disable pause transmit and receive disable pause transmit and receive 1 1 0 1 enable pause receive disable pause transmit enable pause transmit disable pause receive the results of flow control negotiation ar e shown in registers psr0-4 (0x0159~ 0x015d), port_status n [5], and port_status n [4] ( n : 0: 8).
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 20 track id: jatr-1076-21 rev. 1.1 8.3. half duplex flow control in half duplex mode, the csma/cd media access met hod is the means by which two or more stations share a common transmission medium. to transmit, a station waits (defers) fo r a quiet period on the medium (that is, no other station is transmitting) and th en sends the intended message in bit-serial form. if the message collides with that of another station, then each transm itting station intentionally transmits for an additional predefined period to ensure pr opagation of the collision throughout the system. the station remains silent for a random amount of tim e (backoff) before attempting to transmit again. when a transmission attempt has term inated due to a collision, it is re tried until it is successful. the scheduling of the retransmissions is determined by a controlled randomization process called ?truncated binary exponential backoff?. at th e end of enforcing a collision (j amming), the switch delays before attempting to retransmit the frame. the delay is an integer multiple of slottime (512 bit times). the number of slot times to delay before the n th retransmission attempt is chos en as a uniformly distributed random integer ?r? in the range: 0 Q r < 2 k where: k =min (n, backofflimit). the backofflimit for the rlt8366/rtl8369 is 9. the half duplex back-off algorithm in the rtl 8366/rtl8369 does not have the maximum retry count limitation of 16 (as defined in ieee 802.3). this means packets in the switch will not be dropped if the back-off retry count is over 16. two types of half duplex flow control are suppo rted: back-pressure and defer mode. register sgcr (0x0000), bit 9 jam_mode=0b0 is us ed enables back-pressure mode. set jam_mode=0b1 enables defer mode (default). 8.3.1. back-pressure mode (jam_mode=0b0) in back-pressure mode, the RTL8366/8369 sends a 4-byte jam pattern (data=0xaa) to collide with incoming packets when congestion control is activ ated. the jam pattern collides at the fourth byte counted from the preamble. set register sg cr (0x0000), bit 10, en_48pass1=0b1 to receive one packet after 48 consecutive jam collisions (data collisions are not included in the 48). enable this function to prevent port partition after 63 consecutive collisions (data collisions + consecutive jam collisions).
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 21 track id: jatr-1076-21 rev. 1.1 8.3.2. defer mode (jam_mode=0b1) defer is to assert the txen signa l for 2k bytes in order to make the link partner back-off. the ipg between two asserted txen is 56 bits. when conge stion control is activated on the ingress port, the RTL8366/rtl8369 will send a 4-byte jam pattern at the first incoming packet. the link partner will back-off and wait to re-try. the RTL8366/rtl8369 w ill start the defer signa l 56 bits after the link partner starts to back-off. 8.4. search and learning when a packet is received, the r tl8366/rtl8369 uses the least 12 bits of the destination mac address to search the 4k-entry look-up tabl e. this is the ?address search?. if the destination mac address is not found, the switch will broadcast the packet. the RTL8366/rtl8369 then extracts th e least 12 bits of the source mac address to index the 4k-entry look-up table. if the entry is not already in the ta ble it will record the source mac address and add switching information. if this is an o ccupied entry, it will update the en try with new information. this is called ?learning?. address aging is used to keep th e contents of the address table correct in a dynamic network topology. the look-up engine will update the time stamp info rmation of an entry whenever the corresponding source mac address appears. an entry will be invali d (aged out) if it?s time stamp information is not refreshed by the address learning process duri ng the aging time period. the aging time of the RTL8366/rtl8369 is between 200 and 400 seconds (typical is 300 seconds). the 4k-entry look-up table could be read/write via i ndirect register access by external cpu. the detailed look-up table access method is descri bed in section 8.17 look-up table and vlan table access, page 36. 8.5. illegal frame filtering illegal frames such as crc error packets, runt p ackets (length < 64 bytes) and oversize packets (length > maximum length) will be discarded by the rtl 8366/rtl8369. the maximum packet length may be 1522, 1536, 1552, or 9216 bytes. this function is controll ed by max_length[1:0] in register sgcr (0x0000).
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 22 track id: jatr-1076-21 rev. 1.1 8.6. ieee 802.1d reserved group addresses filtering control the RTL8366/rtl8369 supports the ability to drop/ forward 802.1d specified reserved group mac addresses: 01-80-c2-00-00-04 to 01- 80-c2-00-00-0f. the default setting enables forwarding of these reserved group mac address control frames. fr ames with group mac address 01-80-c2-00-00-01 (802.3x pause) and 01-80-c2-00-00-02 (802.3ad lacp ) will always be filtered. mac address 01-80- c2-00-00-03 is always forwarded. this function is controlled by pin strapping of en_mlt_fwd (pin 32) upon power on reset. after power on, the configuration may be ch anged via mltid_st[15:0][1:0] in register mcpcr0-1 (0x000f ? 0x0010). 8.7. realtek remote control protocol tbd 8.8. broadcast storm control the RTL8366/rtl8369 enables or disables broad cast storm control by setting en_bc_storm_ctrl in register sgcr (0x0000). the default is enable d. after 64 consecutive broadcast packets (da=ff- ff-ff-ff-ff-ff) are received by a particular port, the following incoming broadcast packets will be discarded by this port for approximately 800ms. a ny non-broadcast packet can reset the time window and broadcast counter such that the scheme restarts. note: trigger condition: consecutive da=ff-ff- ff-ff-ff-ff packets. releas e condition: receive non-broadcast packet on or after 800ms.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 23 track id: jatr-1076-21 rev. 1.1 8.9. mib counter the RTL8366/rlt8369 implement three 32-bit statistic counters for each port. ? mib n _sela[1:0] in register mccr0-4 (0x0038~ 0x003c), n=0-8: counter select for port n in counter set a. ? 0b00: tx byte count ? 0b01: tx packet count (default) ? mib n _selb[1:0] in register mccr0-4 (0x0038~ 0x003c), n=0 -8: counter select for port n in counter set b. ? 0b00: rx byte count ? 0b01: rx packet count (default) ? mib n _selc[1:0] in register mccr0-4 (0x0038~ 0x003c), n=0 -8: counter select for port n in counter set c. ? 0b00: rx error packet count (default) ? 0b01: rx drop packet count ? 0b10: collision count ? mib n _cnta[31:0] in register p n mib_cnta, n=0 -8: counter set a. ? mib n _cntb[31:0] in register p n mib_cntb, n=0 -8: counter set b. ? mib n _cntc[31:0] in register p n mib_cntc, n=0 -8: counter set c. the tx/rx packet/byte counter only counts forwarded packets. a read access of the mib counter will not reset the counter to 0. the 32-bit counter is a continuous repeat counter that is set to zero only when powered-on, mib_reset in re gister rcr (0x0100) is asserted, an overflow occurs, or a change is made to mib n _sela[1:0], mib n _selb[1:0], mib n _selc[1:0] registers.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 24 track id: jatr-1076-21 rev. 1.1 8.10. port mirroring the RTL8366/rtl8369 supports one set of port mirro ring functions for all 6/9 ports. user could monitor both the tx and rx packets of the sour ce port from a mirror port. the source port to be mirrored can be selected in source_port[3:0] in register pmcr (0x0007). the monitor port can be selected in monitor_port[3:0 ] in register pmcr (0x0007). mirror_tx and mirror_rx in regi ster pmcr (0x0007) are used to select the tx or rx packets of the source port to be mirrored. if mirror_iso in register pmcr (0x0007) is enabled, the monitor port only forwards the tx or rx p ackets of the source port. any othe r packets destined for the monitor port will be dropped. when mirror_spc in regi ster pmcr (0x0007) is en abled, pause packets received by the source port will be forwarded to the monitor port. 8.11. leds there are two types of led mode supported in the RTL8366/rtl8369, matrix led and serial led. configuration can be made by pins pulled high/lo w in led_mode[1:0] upon power on strapping, or by setting led_mode[1:0] in regist er lcr0 (0x0036). blinking enable is configured by setting led_reset_blink in register lcr0 (0x0036). led_blink_time in register lcr0 (0x0036) controls the blink duration for led on/off (43 ms or 120 ms). 8.11.1. matrix leds for matrix leds, each port provides 4 led indicator s, ledb[3:0]. the meaning of ledb[3:0] is shown in table 11. table 11. led mode configuration led_mode[1:0] mode output ledb[3:0] (ledb[3], ledb[2], ledb[1], ledb[0]) 0b00 4-bit for matrix stream 100m/10m, 1000m, link/act, duplex/col 0b01 4-bit for matrix stream 10m link/act, 100m link/act, 1000m link/act, duplex/col 0b10 bi-color led nc, nc, nc, (1000m+link/act, 100m/10m+link/act) 0b11 4-bit for serial stream serial led mode
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 25 track id: jatr-1076-21 rev. 1.1 leda[7] rtl8369 matrix led leda[1] leda[0] ledb[3] ledb[2] ledb[1] leda[8] ledb[0] led r led r led r led r led r led r led r led r led r led r led r led r led r led r led r led r leda[6:2] figure 9. matrix led interconnections rtl8369 bi-color led ledb[3] ledb[2] ledb[1] leda[8] ledb[0] leda[7] leda[0] leda[1] leda[6:2] figure 10. bi-color leds
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 26 track id: jatr-1076-21 rev. 1.1 8.11.2. serial led mode tbd 8.12. vlan function 8.12.1. vlan table, configuration, and mapping the rtl8369 supports 802.1q port-based and tag- based vlan. it supports a total of 4096 vlan tables for smart switch applications. 16 entries of the vlan tables can be read/written directly via register access and eeprom configuration upon pow er on strapping. all 4096 vlan tables can be read/written indirectly via register access. vlan table access is desc ribed in more detail in section 8.17 look-up table and vlan table access, page 36. registers vtcr0 and vtcr1 ( 0x0005 and 0x0006) are used enables vlan function and optional ingress and egress filtering functions. regist ers vidcr0-15 and vmcr0-15 (0x0016 ? 0x0035) are used to configure the vid and member set of th e first 16 vlan entries. registers pvicr0-2 (0x0058 ? 0x005a) are used to configure the port vlan index of ports 0-8. register evtcr (0x010f) is used enables all 4096 vlan tables. 8.12.2. vlan configuration mode 1 (p ort-based vlan application) vlan configuration mode 1 conf igures en_vlan in register vtcr0 (0x0005) as 0b1. the default vlan membership configuration by in ternal register is port 7 over lapped with port 0-6, to form 8 individual vlans. using an attached serial eepro m, or via eeprom smi, the default configuration may be modified to permit ports to join one of the 16 vlan groups: vlan 0-15. table 12. pvid of each port?s default configuration when en_vlan=0b1 port num register pvicr0-2 default value notes 0 p0pvid[3:0] 0x0 index to vlan group 0 1 p1pvid[3:0] 0x1 index to vlan group 1 2 p2pvid[3:0] 0x2 index to vlan group 2 3 p3pvid[3:0] 0x3 index to vlan group 3 4 p4pvid[3:0] 0x4 index to vlan group 4 5 p5pvid[3:0] 0x5 index to vlan group 5 6 p6pvid[3:0] 0x6 index to vlan group 6 7 p7pvid[3:0] 0x7 index to vlan group 7 8 p8pvid[3:0] 0x8 index to vlan group 8
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 27 track id: jatr-1076-21 rev. 1.1 table 13. member set of each vlan group default configuration when en_vlan=0b1 vlan group register vmcr0-15 default register vidcr0-15 default notes 0 member0[3:0] 0x81 vid0[11:0] 0x100 member={port 0, 7}, vid=0x100 1 member1[3:0] 0x82 vid1[11:0] 0x101 member={port 1, 7}, vid=0x100 2 member2[3:0] 0x84 vid2[11:0] 0x102 member={port 2, 7}, vid=0x100 3 member3[3:0] 0x88 vid3[11:0] 0x103 member={port 3, 7}, vid=0x100 4 member4[3:0] 0x90 vid4[11:0] 0x104 member={port 4, 7}, vid=0x100 5 member5[3:0] 0xa0 vid5[11:0] 0x105 member={port 5, 7}, vid=0x100 6 member6[3:0] 0xc0 vid6[11:0] 0x106 member={port 6, 7}, vid=0x100 7 member7[3:0] 0xff vid7[11:0] 0x107 member={all ports}, vid=0x100 8 member8[3:0] 0x00 vid8[11:0] 0x000 member={none}, vid=0x000 9 member9[3:0] 0x00 vid9[11:0] 0x000 member={none}, vid=0x000 10 member10[3:0] 0x00 vid10[11:0] 0x000 member={none}, vid=0x000 11 member11[3:0] 0x00 vid11[11:0] 0x000 member={none}, vid=0x000 12 member12[3:0] 0x00 vid12[11:0] 0x000 member={none}, vid=0x000 13 member13[3:0] 0x00 vid13[11:0] 0x000 member={none}, vid=0x000 14 member14[3:0] 0x00 vid14[11:0] 0x000 member={none}, vid=0x000 15 member15[3:0] 0x00 vid15[11:0] 0x000 member={none}, vid=0x000 taking figure 11 as an example, p0pvid~p 2pvid are 0x0, p3pvid and p4pvid are 0x1, and p5pvid~p8pvid are 0x2. this means port 0 to 2 be long to vlan 0, port 3 and port 4 belong to vlan 1, and ports 5 to 8 belong to vlan 2. member0=000000111 means ports 0 to 2 are members of vlan 0 and packet ingre ss from any of these ports could only be forwarded to these ports . member1=000011000 means port 3 and port 4 are members of vlan 1 and packet ingress from any of these ports can only be forwarded to these ports. member2=111100000 means ports 5 to 8 are members of vlan 2 and packet ingre ss from any of these ports can only be forwarded to these ports. if packets ingress from port 0 and the destination port is port 3 (searched according to the da of the p acket), the switch will drop the packets.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 28 track id: jatr-1076-21 rev. 1.1 vlan 1 p0 p1 p2 p3 p4 p5 p6 p7 p8 vlan 0 vlan 2 RTL8366/rtl8369 000000111 000011000 111100000 000000000 . . . 000000000 member0 member1 member2 member3 . . . member15 p0pvid = 0x0 p1pvid = 0x0 p4pvid = 0x1 p3pvid = 0x1 p2pvid = 0x0 p5pvid = 0x2 p6pvid = 0x2 p7pvid = 0x2 p8pvid = 0x2 figure 11. port-based vlan application example
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 29 track id: jatr-1076-21 rev. 1.1 8.12.3. vlan configuration mode 2 (802.1q 16 vlan entries application) 802.1q tagged-vid based vlan mapping uses a 12-bit explicit identifier in the vlan tag to associate received packets with a vlan. sixteen groups of vlan membership registers, member0[8:0] ~ member15[8:0] (0x0017/0x0019/?/0x0035) , consist of ports that are in the same vlan corresponding to the registers defined in vid0[11:0] ~ vid15[11:0] (0x0016/0x0018/?/0x0034) . if the vid of a vlan-tagged frame does not hit vid0[11:0] ~ vid15[11:0] , then the frame will be dropped by the RTL8366/rtl8369. otherwise, the RTL8366/rtl8369 comp ares the explicit identifier in the vlan tag with the 16 vlan registers to determine the vlan association of this frame, then forwards it to the member set of this vlan. two vids are reserved for special purposes. one of them is all ones and is reserved and currently unused. the othe r is all zeros and indi cates a priority tag, which is treated as an untagged frame. when vlan_t ag_aware in register vtcr 0 (0x0005) is enabled, the RTL8366/rtl8369 performs 802.1q ta g based vlan mapping for tagged frames, but performs port- based vlan mapping for untagged frames. if vlan_tag_aware is disabled, the RTL8366/rtl8369 performs only por t-based vlan mapping both for non-tagged and tagged frames. figure 12 illustrates the processing fl ow when vlan_tag_aware is enabled. p0pvid[3:0]=0x0 RTL8366/rtl8369 ------ da sa 802.1q tag length/ type ------ da sa length/ type tagged search vid table p0 p1 p2 p3 p4 p5 p6 p7 p8 un-tagged ------ da sa 802.1q tag length/ type vid8=0x100 vid7=0x107 vid6=0x106 member0 0 1 0 0 0 0 0 0 1 member7 0 1 1 1 1 1 1 1 1 member6 0 1 1 0 0 0 0 0 0 member5 0 1 0 1 0 0 0 0 0 member4 0 1 0 0 1 0 0 0 0 member3 0 1 0 0 0 1 0 0 0 member2 0 1 0 0 0 0 1 0 0 member1 0 1 0 0 0 0 0 1 0 member8 0 0 0 0 0 0 0 0 0 vid5=0x105 vid4=0x104 vid3=0x103 vid2=0x102 vid1=0x101 vid0=0x100 vid15=0x000 vid14=0x000 member15 0 0 0 0 0 0 0 0 0 member14 0 0 0 0 0 0 0 0 0 member13 0 0 0 0 0 0 0 0 0 member12 0 0 0 0 0 0 0 0 0 member11 0 0 0 0 0 0 0 0 0 member10 0 0 0 0 0 0 0 0 0 member9 0 0 0 0 0 0 0 0 0 vid13=0x000 vid12=0x000 vid11=0x000 vid10=0x000 vid9=0x000 ------ da sa length/ type p8pvid[3:0]=0x8 tagged un-tagged figure 12. tagged/untagged packet forwarding when vlan_tag_aware is enabled
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 30 track id: jatr-1076-21 rev. 1.1 8.12.4. vlan configuration mode 3 (802.1q 4096 vlan entries application) the RTL8366/rtl8369 supports 4096 vlan entries by setting en_vl an_tbl in register evtcr (0x010f) as 0b1. vid[11:0] of each vlan is the same as the index of each entry in the table. for example, the vid[11:0]=0x100 is th e 256th entry in the vlan table. the vlan table format is shown in figure 13. 1 0x001 0 0 0 0 0 0 0 0 0 4094 0xffe 0 0 0 0 0 0 0 0 0 4093 0xffd 0 0 0 0 0 0 0 0 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 0x002 0 0 0 0 0 0 0 0 0 4095 0xfff reserved entry vid[11:0] member[8:0] 0 0x000 reserved 4096 vlan entry figure 13. 4096 vlan table format when 4096 vlan tables are enabled, fo r port-based vlan forwarding, vid n [11:0] of vlan group n (n=0-8) are used to point to the entry of the 4096 vlan tables. p n pvid[3:0] are fixed as 0x n (n=0-8), and should not be changed when en_vlan_tbl=0b1. for example, p0pvid[3:0]=0x0 and vi d0[11:0]=0x100 means the pvid of p0 is 0x100. the member set configuration depends on the settin g at entry 256 in the vlan table. the member0[8:0] in register vmcr0 (0x0017) is not used when en_vlan_tbl=0b1. table 14. pvid of each port configurati on when en_vlan=0b1 and en_vlan_tbl=0b1 port num register pvicr0-2 default value note 0 p0pvid[3:0] 0x0 index to the vid entry of vlan group 0 1 p1pvid[3:0] 0x1 index to the vid entry of vlan group 1 2 p2pvid[3:0] 0x2 index to the vid entry of vlan group 2 3 p3pvid[3:0] 0x3 index to the vid entry of vlan group 3 4 p4pvid[3:0] 0x4 index to the vid entry of vlan group 4 5 p5pvid[3:0] 0x5 index to the vid entry of vlan group 5 not supported in the RTL8366. 6 p6pvid[3:0] 0x6 index to the vid entry of vlan group 6 not supported in the RTL8366.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 31 track id: jatr-1076-21 rev. 1.1 port num register pvicr0-2 default value note 7 p7pvid[3:0] 0x7 index to the vid entry of vlan group 7 not supported in the RTL8366. 8 p8pvid[3:0] 0x8 index to the vid entry of vlan group 8 when 4096 vlan tables are enabled, for 802.1q tag-based vlan forwarding, the RTL8366/rtl8369 use the vid in the tagged packet to search the vid n [11:0] of each vlan table. no match if the vid of the tagged packet does not match any vid n [11:0] of all the valid vlan tables, the packet is dropped by the switch. match if the vid of the tagged packet matches the vid n [11:0] of a valid vlan entr y, the packet is forwarded according to the da search result and member set of the vlan entry. RTL8366/rtl8369 ------ da sa length/ type tagged search by vid p0 p2 p3 p4 p5 p6 p7 p8 un-tagged ------ da sa 802.1q tag length/ type vid8=0x108 vid7=0x107 vid6=0x106 vid5=0x105 vid4=0x104 vid3=0x103 vid2=0x102 vid1=0x101 vid0=0x100 search by vid p8pvid[3:0]=0x8 tagged un-tagged 256 0x100 0 1 0 0 0 0 0 0 1 263 0x107 0 1 1 1 1 1 1 1 1 262 0x106 0 1 1 0 0 0 0 0 0 261 0x105 0 1 0 1 0 0 0 0 0 260 0x104 0 1 0 0 1 0 0 0 0 259 0x103 0 1 0 0 0 1 0 0 0 258 0x102 0 1 0 0 0 0 1 0 0 257 0x101 0 1 0 0 0 0 0 1 0 264 0x108 0 0 0 0 0 0 0 0 0 entry vid member p0pvid[3:0]=0x0 p1pvid[3:0]=0x1 p1 p2pvid[3:0]=0x2 p3pvid[3:0]=0x3 p4pvid[3:0]=0x4 p5pvid[3:0]=0x5 p6pvid[3:0]=0x6 p7pvid[3:0]=0x7 p8pvid[3:0]=0x8 4096 entry fixed configurable . . . . . . 0 0 0 0 0 0 0 0 0 . . . . . . 0 0 0 0 0 0 0 0 0 ------ da sa length/ type ------ da sa 802.1q tag length/ type p0pvid[3:0]=0x0 figure 14. tagged/untagged packet forwarding when vlan_tag_aware and en_vlan_tbl are enabled
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 32 track id: jatr-1076-21 rev. 1.1 8.12.5. vlan ingress and egress rules the RTL8366/rtl8369 support three vlan ingress-filte ring controls. these filte ring functions can be enabled or disabled by register access or eeprom conf iguration. all of these f unctions are disabled by default. ? vlan_tag_admit (vlan tag admit control): enables receiving only vlan-tagged frames. untagged frames or priority tagged frames (vid=0) will be dropped by the RTL8366/rtl8369. ? en_ingress_rule (ingress member set filtering contro l): enables dropping of frames if the receiving port is not in the member set for the frame?s vlan classification vid. ? en_tag_drop (vlan tag drop c ontrol): drops all vlan-tagged fr ames and receives all other untagged frames or priority tagged frames (vid=0). the RTL8366/rtl8369 supports 3 vlan egress vlan lea ky controls. these leak y rules have higher priority than vlan egress rules (the destination port need not be a member of the vlan table). ? en_uc_leaky (unicast vlan leaky control): en ables inter-vlan unicast packet forwarding. ? en_arp_leaky (arp packet vlan leaky c ontrol): enables rp packets (da=ff-ff-ff-ff- ff-ff and ether-type=0x0806) to forward to all the other ports ignoring the egress rule. en_arp should be enabled (register sgcr, 0x0000, bit 7) before enabling the en_arp_leaky function. ? en_ipmc_leaky (ip multicast packet vlan leaky control): enables ip multicast packets to forward to all the other ports ignoring the egress rule. en_igmp should be enabled (register sgcr, 0x0000, bit 6) before enabling the en_ipmc_leaky function. 8.12.6. vlan tagging/un-tagging per-port output tag/untag control: four types of output vlan tagging control are supported, controlled by register vtcr0-1 (0x0005 and 0x0006), p n _tag_control[1:0], n =0: 8. ? 0b00: keeps all packets unchanged. ? 0b01: inserts a vlan tag according to the pvid of the ingress port. ? 0b10: removes vlan-tags from frames. ? 0b11: inserts a priority tag according to the priority of the packet. if the vlan tag removed frame is less than 64 bytes, the rtl8369 will add ?0x20? as load padding before the crc field.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 33 track id: jatr-1076-21 rev. 1.1 8.13. qos there are two priority queues supported in the r tl8366/rtl8369, and 3 types of priority classification. the queue service rate is based on the weighted round robin algorithm, the packet-based service weight ratio of the high-pr iority queue and low-prior ity queue can be set to 4:1, 8:1, 16:1, or ?always high priority first?. the ratio can be selected by qweight[1:0] in register qcr0 (0x0009). the 3 types of priority classification are port-based, differentiated se rvice-based, and 802.1q vlan tag- based. 8.13.1. port-based priority port-based priority is enab led via en_port_pri in regist er qcr0 (0x0009). configuring port_pri[8:0] as 0b1 in register qcr1 (0x000a) forces incoming pack ets at the ingre ss port to be high priority. when port-based priority is applied, a ny packet received from a high priority port will be treated as a high priority packet. 8.13.2. ieee 802.1p/q-based priority ieee 802.1p/q-based priority is enabled via en_1q_p ri in register qcr0 (0x0009). when 802.1p tag priority is applied, the RTL8366/rtl8369 recognizes 802.1q vlan tagged pack ets and extracts the 3-bit user priority information from the vlan tag. the RTL8366/rtl8369 se ts the user priority threshold to 3. vlan tagged packets with user priority values 4~7 are treated as high priority packets, and other user priority values (0~3) as low priority packets (follows the ieee 802.1p standard).
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 34 track id: jatr-1076-21 rev. 1.1 8.13.3. differentiated service based priority differentiated service-based priority function is enabled by en_ds_pri in register qcr0 (0x0009). when tcp/ip?s tos/diffserv (ds) based prio rity is applied, the RTL8366/rtl8369 recognizes tcp/ip differentiated services codepoint (dscp) pr iority information from the ds-field defined in rfc2474. the ds field byte for ipv4 is the type -of-service (tos) octet. recommended diffserv codepoints are defined in rfc2597 for classifying traffic into different service classes. the RTL8366/rtl8369 extracts the codepoint value of the ds field from ipv4 packets and identifies the priority of the incoming ip packet following th e definitions by tos[63:0] in register qcr2-5 (0x000b ? 0x000e). for example, if to s[5] = 0b1 means tos[5:0] = 0b000101 table 15. ipv4 frame format 6 bytes 6 bytes 4 bytes 2 bytes 4 bits 4 bits 6 bits 2 bits 4 bytes da sa 802.1q tag (optional) 08-00 version ipv4: 0100 ihl tos[0:5]: ds-field ---- data crc table 16. ipv6 frame format 6 bytes 6 bytes 4 bytes 2 bytes 4 bits 6 bits 2 bits 4 bytes da sa 802.1q tag (optional) 08-dd version ipv6: 0110 tos[0:5]: ds-field ---- data crc 8.14. port property configuration the RTL8366/rtl8369 can configure the nway ability of the rtl8212 via eeprom upon power on strapping. in register paac r0-4 (0x0011~ 0x0015), port_ability n [7:0] are used to configure the nway ability in the rtl8212 mii register when au to-negotiation is enable d. when auto-negotiation is disabled, the ?forced parameter? forces the port to a particular defined status. the port ability is written to phy register 4 and 9 upon power on reset. the register mapping of port_ability n [7:0], n=0: 8, is shown in table 17. table 17. port ability register name asymmetric flow control flow control 1000 full 100 full 100 half 10 full 10 half auto- negotiation bit 7 6 5 4 3 2 1 0 rtl8212 mii register reg.4[11] reg.4[10] reg.9[9] reg.4[8] reg.4[7] reg.4[6] reg.4[5] reg.0[12]
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 35 track id: jatr-1076-21 rev. 1.1 8.15. spanning tree status register the RTL8366 and rtl8369 support a sp anning tree status register p n sts[1:0]. when the system supports the spanning tree function, a cpu or risc must be present. all ports behave according to p n sts[1:0] . the cpu determines the state of the ports according to bpdu, then updates the sps to control the port behavior. the cpu port should carry the in gress port number of the receiving bpdu. the port state behavior is shown in table 18. table 18. spanning tree status: port state behavior pnsts[1:0] receive bpdu transmit bpdu learn address forward data frames blocking (0b00) v x x x listening (0b01) v v x x learning (0b10) v v v x forwarding (0b11) v v v v 8.16. phy mii register access the RTL8366 and rtl8369 provide an external cpu with an indirect access interface to change the phy mii register configuration. in register phyacr0-4 (0x0118 ? 0x011c), the phy address, register address, input data, and read /write commands can be configured. 8.16.1. phy mii register read access 1. configure phy_addr[4:0] in register phyacr1 (0x0119). 2. configure phy_reg[4:0] in register phyacr2 (0x011a). 3. configure phy_exec=0b1 and phy_rw =0b0 in register phyacr0 (0x0118). 4. when phy_exec=0b0 in register phyacr0, r ead the data from phy_data_in[15:0] in register phyacr3 (0x011b). 8.16.2. phy mii register write access 1. configure phy_addr[4:0] in register phyacr1 (0x0119). 2. configure phy_reg[4:0] in register phyacr2 (0x011a). 3. configure phy_data_out[15:0] in register phyacr4 (0x011c). 4. configure phy_exec=0b1 and phy_rw =0b1 in register phyacr0 (0x0118). 5. when phy_exec=0b0 in register phyacr0, the sw itch is finished write access to the phy mii register.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 36 track id: jatr-1076-21 rev. 1.1 8.17. look-up table and vlan table access the RTL8366/rtl8369 support indirect access to the 4k-entry lookup tables and 4k vlan tables by external cpu or risc. table_exec in register lvtacr (0x0180) is used to start the access command, and table_cmd[2:0] is used to sele ct the access method. wd[69:0] in register lvtdir0-4 (0x0182 ? 0x0186) is the data input buffer, wh ich is used to input specific lookup table or vlan table entry information. rd[47:0] in register lvtdor0-2 (0x0188 ? 0x018a) is the data output buffer, which is the output in formation after access has completed. table 19. data input/output buffer format and register mapping rd[47:32] rd[31:16] rd[15:0] lvtdor2[15:0] lvtdor1[15:0] lvtdor0[15:0] wd[47:32] wd[31:16] wd[15:0] lvtdir2[15:0] lvtdir1[15:0] lvtdir0[15:0] wd[63:48] lvtdir3[15:0] wd[69:48] lvtdir4[5:0]
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 37 track id: jatr-1076-21 rev. 1.1 table 20 summarizes the input data buffer (wd[69:0] ) format for lookup and vlan table read/write access. table 21 summarizes the output data buffe r (rd[47:0]) format for lookup and vlan table read/write access. table 20. summary format for lookup and vlan table access input data buffer (wd[69:0]) wd[69:64] 69 68 67 66 65 64 uni-cast read uni-cast write multicast read multicast write vlan read ` vlan write wd[63:48] 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 uni-cast read uni-cast write fixed multicast multicast read multicast write fixed multicast vlan read vlan write wd[47:32] 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 uni-cast read uni-cast write multicast read multicast write vlan read vlan write wd[31:16] 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 uni-cast read uni-cast write multicast read multicast write vlan read vlan write wd[15:0] 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 uni-cast read uni-cast write multicast read multicast write vlan read vlan write reserved reserved reserved reserved reserved reserved reserved reserved reserved member[8:0] reserved reserved mac_b4[7:0] mac_b5[7:0] reserved reserved mac_b4[7:0] mac_b5[7:0] mac_b2[7:0] mac_b3[7:0] reserved mac_b2[7:0] mac_b3[7:0] mac_b0[7:0] mac_b1[7:0] reserved mac_b0[7:0] mac_b1[7:0] mac_b0[7:0] mac_b1[3:0] mac_b0[7:0] reserved mac_b1[3:0] reserved p 5_aging[1:0 ] p 4_aging[1:0 ] p 3_aging[1:0 ] p 2_aging[1:0 ] p 1_aging[1:0 ] p 0_aging[1:0 ] reserved reserved aging[1:0] spa[3:0] reserved vid[11:0] vid[11:0] reserved reserved reserved p 8_aging[1:0 ] p 7_aging[1:0 ] p6_aging[1:0] reserved
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 38 track id: jatr-1076-21 rev. 1.1 table 21. summary format for lookup and vlan table access output data buffer (rd[47:0]) rd[47:32]4746454443 42 41403938373635343332 u ni-cast rea d fail fixed multicast m ulticast rea d fail fixed multicast vlan read rd[31:16]3130292827 26 25242322212019181716 u ni-cast rea d m ulticast rea d vlan read rd[15:0]151413121110 9876543210 u ni-cast rea d m ulticast rea d vlan read mac_b3[7:4] member[8:0] reserved reserved reserved p7_aging[1:0 ] p6_aging[1:0 ] reserved aging[1:0] spa[3:0] p1_aging[1:0] p0_aging[1:0 ] p5_aging[1:0 ] p4_aging[1:0 ] mac_b3[3:0] mac_b4[7:0] mac_b5[7:4] reserved p8_aging[1:0 ] reserved mac_b2[7:0] mac_b1[7:4] reserved mac_b5[3:0] mac_b2[7:0] mac_b1[7:4] p 3_aging[1:0 ] p 2_aging[1:0 ] 8.17.1. look-up table read access method (unicast) the standard mac address format is shown in table 22. for example, the da of a pause packet is 01- 80-c2-00-00-01. that means byte5=0x01, byte 4=0x80, byte3=0xc2, byte2=0x00, byte1=0x00, and byte0=0x01. table 22. mac address format byte 5 byte 4 byte 3 byte 2 byte 1 byte 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 mac address pause da 01 80 c2 00 00 01 for lookup table read access, we need to input the en try number of a specific table. the wd[63:0] (lvtdir0-3) format is shown in table 23. afte r inputting the lookup table read access command (table_cmd[2:0]=0b000 and table_exec=0b1), the re turned data will be shown in rd[47:0] (lvtdor0-2) (see table 24). other reserved a nd un-defined bits in wd[63:0] (lvtdir0-3) must=0b0.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 39 track id: jatr-1076-21 rev. 1.1 table 23. data input buffer (wd[63:0]) format for lookup table read access byte 5 byte 4 byte 3 byte 2 byte 1 byte 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 mac address wd[47:40] wd[35:32] write data[47:0] 0xbc example 0xa table 24. data output buffer (rd[47:0]) format for lookup table unicast entry read access byte 5 byte 4 byte 3 byte 2 byte 1 byte 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 mac address rd[3:0] read data[47:0] rd[19:12] rd[27:20] rd[35:28] rd[11:4] 0x12 0x34 0x56 0x78 example 0x9 rd[44] rd[43] rd[42] fail fixed multicast rd[41:40] aging rd[39:36] spa rd[47:45] reserved 0b0 0b1 0b0 0b11 0x5 0b000 item rd[47:0] example for example, if we want to read the lookup tabl e entry 2748 (0xabc), then we have to configure: ? wd[35:32] (lvtdir2[3:0])=0xa ? wd[47:40] (lvtdir2[15:8])=0xbc ? others=0
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 40 track id: jatr-1076-21 rev. 1.1 the mac address read from this entry will be xx-xx-xx-xx-xa-bc. the returned data will be shown in lvtdor0-2 in the following format: if a fixed entry in the lookup tabl e is 12-34-56-78-9a-bc, spa (source port address) is port 5, the return data is in rd[19:12]=0x12, rd[2 7:20]=0x34, rd[35:28]=0x56, rd[11:4]=0x78, and rd[3:0]=0x9. spa is in rd[39:36]=0x5, aging is in rd[41:40]=0b11, multicast is in rd[42]=0, fixed is in rd[43]=1, and fail is in rd[44]=0. 8.17.2. look-up table write access method (unicast) for lookup table write access, we need to input th e mac address, multicast flag, fixed flag, spa (source port address), and aging timer. the wd[63:0] format is shown in table 25. after inputting the lookup table write access command (table_cm d[2:0]=0b001 and table_exec=0b1), the lookup table write access is finished. for example, to configure a fixed entry with spa as port 5 and mac address=12-34-56-78-9a-bc: ? configure wd[7:0]=0x12, wd[15:8]= 0x34, wd[23:16]=0x56, wd[31:24]=0x78, wd[39:32]=0x9a, and wd[47:40]=0xbc ? wd[48]=0b0 for unicast entry ? wd[49]=0b1 for fixed entry, wd[51:50]=0b00 ? wd[55:52]=0x5 for port 5 ? wd[57:56]=0b11 for aging timer. ? other reserved and un-defined bits in wd[63:0] must=0b0
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 41 track id: jatr-1076-21 rev. 1.1 table 25. data output buffer (rd[47:0]) format for lookup table unicast entry read access byte 5 byte 4 byte 3 byte 2 byte 1 byte 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 mac address wd[47:40] write data[47:0] wd[7:0] wd[15:8] wd[23:16] wd[31:24] wd[39:32] 0xbc 0x12 0x34 0x56 0x78 0x9a example wd[57:56] aging wd[55:52] spa wd[51:50] wd[49] wd[48] reserved fixed multicast 0b11 0x5 0b00 0b1 0b0 item wd[63:0] example when the entry is configured as fixed and enable d, aging must be configured as 0b01: 0b11 for normal searching and forwarding. if the aging of a fixed entr y is configured as 0b00, th en all packets with the da=mac address will be broadcast to all active ports. other port?s ingress packets with the sa=mac address will not be learne d into the lookup table. for example, if the entry 2748 (0xabc) is confi gured as fixed and aging=0b00, with mac address=12- 34-56-78-9a-bc, any packets with da= mac address will be broadcast to all active ports, and ingress packets with sa=mac addr ess will not be learne d into the lookup table.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 42 track id: jatr-1076-21 rev. 1.1 8.17.3. look-up table read access method (multicast) the standard multicast mac address format is show n in table 26. the da mac address of a multicast packet ranges from 01-00-5e-00-00-00 to 01-00-5e- 7f-ff-ff. the mac address table consists of 25 fixed bits, and 23 configurable bits. table 26. multicast mac address range and format byte 5 byte 4 byte 3 byte 2 byte 1 byte 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 mac address da 0x01 0x00 0x5e 0x00-0x7f 0x00-0xff 0x00-0xff for lookup table multicast entry read access, we need to input the entry number of a specific table. the wd[63:0] format is shown in table 27. afte r inputting the lookup table read access command (table_cmd[2:0]=0b000 and table_exec=0b1), the retu rned data will be rd[47:0] as shown in table 28. other reserved and un-defi ned bits in wd[63:0] must=0b0. table 27. data input buffer (wd[63:0]) format for lookup table multicast entry read access byte 5 byte 4 byte 3 byte 2 byte 1 byte 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 mac address wd[47:40] wd[35:32] write data[47:0] 0xbc example 0xa
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 43 track id: jatr-1076-21 rev. 1.1 table 28. data output buffer (rd[47:0]) format for lookup table multicast entry read access byte 5 byte 4 byte 3 byte 2 byte 1 byte 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 mac address rd[3:0] read data[47:0] rd[11:4] 0x78 example 0x9 for example, if we want to read the lookup table multicast entry 2748 (0xabc), then we have to configure: ? wd[35:32] (lvtdir2[3:0])=0xa ? wd[47:40] (lvtdir2[15:8])=0xbc ? others=0 when a fixed multicast entry in the lookup table is 01-00-5e-78-9a -bc, member ports={8, 5, 3, 1, 0}. the return data in rd[11:4]=0x78, rd[3:0]=0 x9, rd[41:24]=portn_aging[ 1:0] (n=0-8)={0b11 0b00 0b00 0b11 0b00 0b11 0b00 0b11 0b11}, multicast is in rd[42] = 1, fixed is in rd[4 3] = 1, and fail is in rd[44]=0.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 44 track id: jatr-1076-21 rev. 1.1 8.17.4. look-up table write access method (multicast) for lookup table multicast entry write access, we n eed to input the multicas t mac address, multicast flag, fixed flag, and aging timer of all 9 ports. the wd[69:0] form at is shown in table 29. after inputting the lookup table write acce ss command (table_cmd[2:0]=0b001 and table_exec=0b1), the lookup table write access is finished. for example, to configure a fixed entry with me mber ports to be ports {8, 5, 3, 1, 0} and the mac address=01-00-5e-78-9a-bc: ? configure wd[7:0]=0x01, wd[15:8]=0x00, wd[23:16]=0x5e, wd[31:24]=0x78, wd[39:32]=0x9a, and wd[47:40]=0xbc ? wd[48]=0b1 for multicast entry ? wd[49]=0b1 for fixed entry ? wd[69:52]={0b11 0b00 0b00 0b11 0b00 0b11 0b00 0b11 0b11} for ports {8, 5, 3, 1, 0} aging timer ? other reserved and un-defined bits in wd[63:0] must=0b0. table 29. data input buffer (wd[69:0]) format for lookup table multicast entry write access byte 5 byte 4 byte 3 byte 2 byte 1 byte 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 mac address wd[47:40] write data[47:0] wd[7:0] wd[15:8] wd[23:16] wd[31:24] wd[39:32] 0xbc 0x01 0x00 0x5e 0x78 0x9a example wd[49] wd[48] fixed multicast 0b1 0b1 item wd[69:0] example wd[69:68] p8 aging 0b11 wd[55:54] p1 aging 0b00 . . . . . . . . . wd[53:52] p0 aging 0b11 wd[51:50] reserved 0b00
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 45 track id: jatr-1076-21 rev. 1.1 8.17.5. vlan table read access method for vlan table read access, we need to input the vlan entry num ber into entry[11:0] (wd[11:0]). after inputting the vlan table read access command (table_cmd[1:0]=0b10 and table_exec=0b1), the returned data will be show n in member[8:0] (register rd[8:0]) as shown in table 30. table 30. data output buffer (rd[8:0]) format for vlan table read access 0x000 0x001 0x002 . . . 0 1 2 . . . reserved 0b010000001 0b010000010 . . . vid[11:0] entry[11:0] member[8:0] wd[11:0] rd[8:0] 0xffe 0xfff 4094 4095 0b000000000 reserved for example, when input data are entry[11:0]=0x0 02 (wd[11:0]) in register lvtdir0, table_cmd[1:0]=0b10, and table_exec=0b1, th en the member set of vlan entry 2 (vid[11:0]=0x002) will return member[8 :0]=0b010000010 (rd[8:0]) in register lvtdor0.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 46 track id: jatr-1076-21 rev. 1.1 8.17.6. vlan table write access method for vlan table write access, we need to input the vlan entry number into entry[11:0] (wd[11:0]) and member set into member[8:0] (wd[24:16]). af ter inputting the vlan ta ble read access command (table_cmd[1:0]=0b11 and table_exec=0b1), the vlan table write access is finished (see table 31). table 31. data output buffer (wd[24:0]) format for vlan table write access for example, when input entry[11:0]= 0x001 (wd[11:0]) in register lvtdir0, member[8:0]=0b010000001 in register lv tdir1, and table_cmd[1:0]=0b11, table_exec=0b1, the vlan entry, vid[11:0]=0x001, is configured as member={ port 0 and port 7}.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 47 track id: jatr-1076-21 rev. 1.1 9. interface descriptions 9.1. eeprom smi host to eeprom the eeprom interface of the RTL8366 and rtl8369 uses the serial bus eeprom serial management interface (smi). the 2k-bit 24c02 eeprom is r ead via the eeprom smi protocol. when the RTL8366/rtl8369 is powered up, the RTL8366/rtl8369 dr ives sck and sda to read the registers from the eeprom. sda scl start stop scl data in data out start acknowledge 1 89 figure 15. eeprom smi host to eeprom s a2 a1 a0 r w a c k control byte byte address data a c k a c k p msb msb figure 16. host mode eeprom smi frame
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 48 track id: jatr-1076-21 rev. 1.1 figure 17. eeprom smi sequential read 9.2. eeprom smi slave for external cpu when eeprom auto-load is complete, the RTL8366/ rtl8369 registers can be accessed via sck and sda via an external cpu. the device address of the RTL8366/rtl8369 is 0x4. read/write timing is shown in figure 18 and figure 19. fo r the start and end of a write/r ead command, sck needs one extra clock before/after th e start/stop signals. figure 18. eeprom smi write command for slave mode figure 19. eeprom smi read command for slave mode
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 49 track id: jatr-1076-21 rev. 1.1 9.3. smi (mdc/mdio) interface the rlt8366/rtl8369 use simple management interf ace (smi) via mdc and md io signals to poll the mii register of the rtl8212. the polled phy addresses are in smi frame format. table 32. smi frame format preamble (32 bits) start (2 bits) op code (2 bits) phyad (5 bits) regad (5 bits) turn around (2 bits) data (16 bits) idle read 1??..1 01 10 a 4 a 3 a 2 a 1 a 0 r 4 r 3 r 2 r 1 r 0 z0 d 15 ??.d 0 z* write 1??..1 01 01 a 4 a 3 a 2 a 1 a 0 r 4 r 3 r 2 r 1 r 0 10 d 15 ??.d 0 z* 9.4. mac to phy interface: rsgmii (reduced serial gigabit media independent interface) to reduce pcb complexity and ic pin count, the RTL8366/rtl8369 provide s 3/4 innovative 2.5gbps rsgmii (reduced serial gigabit media independent in terface). each of these se rial interfaces can carry data originating from two gigabit mac ports simulta neously, and recover clock from the data rather than use a dedicated clock. these interfaces reduces the interconnection between the mac and phy to only 5 pins for each dual mac rtl8212. figure 20 shows the rsgmii interconnection diagram.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 50 track id: jatr-1076-21 rev. 1.1 figure 20. rsgmii interconnection diagram the rsgmii interface runs at 2.5gbps in 10m/100m/1000 mbps modes. clearly, a 2.5gbps data rate is excessive for interfaces operating at 10m/100mbps. when operating in these conditi ons, the interface elongates each byte of data by 10 times for 100m bps, and by 100 times for 10mbps, through a rate adaptation block. the data paths and all associated control signals are transferred across from each port and recovered at the receiver side using proprietary transmission code and serial-de-se rial translation. the same method applies to the transmit side. for a detailed description refer to the rtl8212 datasheet.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 51 track id: jatr-1076-21 rev. 1.1 9.5. general purpose interface the general purpose interface (gpif) can be operate d in 3 modes, strapped by gpif_mode[4:0] pins upon reset. ? 0b11000: gmii/mii mac: the interface is run in gmii mode when the port is linked at 1000mbps. as the speed changes to 100mbps mode, the in terface turns to run in mii mac mode. 10mbps is not supported in this configuration. ? 0b11001: rgmii: the interface is run in rgmii mode. only supports 1000mbps full duplex mode. ? 0b11100: mii phy mode: the interface is run in mii phy mode at 100mbps full duplex. 100mbps half duplex and 10mbps full/half duplex ar e not supported in this configuration. when nway is off in gmii/rgmii mode, the speed is determined by port_ability n [7:0] (reg. 0x11-15) configuration. in mii phy mode, the link/flow control ab ility is determined by strapped pin p8_phy_link (pin 11) and dis_fc (pin 7). th e p8_phy_link and dis_fc have their reflected registers, which are configurable by the cpu interface. table 33. gmii/rgmii/mii phy mode pins pin no. gmii/mii rgmii mii phy 126, 128, 1, 2 p8txd[7:4] n/a n/a 3, 4, 5, 6 p8txd[3:0] p8txd[3:0] p8prxd[3:0] 7 p8txen n/a p8prxdv 9 p8gtxc p8txc p8prxc 11 p8txer p8txctrl n/a 12 p8txc n/a n/a 14 p8crs n/a n/a 16 p8col n/a n/a 17 p8rxer p8rxctrl p8ptxer 18 p8rxc p8rxc p8ptxc 19 p8rxdv n/a p8ptxen 29, 28, 27, 26 p8rxd[7:4] n/a n/a 24, 22, 21, 20 p8rxd[3:0] p8rxd[3:0] p8ptxd[3:0]
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 52 track id: jatr-1076-21 rev. 1.1 9.5.1. gmii/mii mac mode (only fo r 100mbps and 1000mbps) RTL8366/ rtl8369 mac side gmii mode p8gtxc p8txer p8txen p8txd[7:0] p8rxc p8rxer p8rxdv p8rxd[7:0] p8crs p8col phy side gmii mode pgtxc ptxer ptxen ptxd[7:0] prxc prxer prxdv prxd[7:0] pcrs pcol p8gtxc p8txer p8txen p8txd[7:0] p8rxc p8rxer p8rxdv p8rxd[7:0] p8crs p8col p8txc ptxc figure 21. signal diagram of gmii mode interface (1000mbps)
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 53 track id: jatr-1076-21 rev. 1.1 9.5.2. mii mac mode interface (100mbps) RTL8366/ rtl8369 mii mac mode p8gtxc p8txer p8txen p8txd[3:0] p8rxc p8rxer p8rxdv p8rxd[3:0] p8crs p8col phy side mii mode pgtxc ptxer ptxen ptxd[3:0] prxc prxer prxdv prxd[3:0] pcrs pcol p8txer p8txen p8txd[3:0] p8rxc p8rxer p8rxdv p8rxd[3:0] p8crs p8col p8txc ptxc p8txc figure 22. signal diagram of mii mac mode interface (100mbps)
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 54 track id: jatr-1076-21 rev. 1.1 9.5.3. rgmii mode (only for 1000mbps full duplex) RTL8366/ rtl8369 rgmii mode p8txc p8txen p8txctrl p8txd[3:0] p8rxc p8rxdv p8rxctrl p8rxd[3:0] p8crs p8col rgmii mode ptxc ptxctrl ptxd[3:0] prxc prxctrl prxd[3:0] p8txctrl p8txd[3:0] p8rxc p8rxctrl p8rxd[3:0] p8txc p8txc figure 23. signal diagram of rgmii mode interface
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 55 track id: jatr-1076-21 rev. 1.1 9.5.4. mii phy mode (only fo r 100mbps full duplex) RTL8366/ rtl8369 mii phy mode p8prxdv p8prxd[3:0] p8ptxc p8ptxen p8ptxd[3:0] mii mac mode rxer rxdv rxd[3:0] txc txer txen txd[3:0] crs col p8prxdv p8prxd[3:0] p8ptxc p8ptxen p8ptxd[3:0] p8prxc rxc p8prxer p8ptxer p8prxer p8ptxer p8prxc figure 24. signal diagram of mii phy mode interface (100mbps full) 9.6. power management interface tbd
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 56 track id: jatr-1076-21 rev. 1.1 10. register and eeprom descriptions RTL8366/rtl8369 registers can be divi ded into two parts. one is fr om 0x0000 to 0x007f and the other is 0x0100 to 0xffff the first part can be configured by eeprom via auto-loa d after power on or pin re set. both parts can be accessed by external cpu via the eeprom smi after power on. per-port configuration re gisters for ports 5~7 are not suppor ted in the RTL8366. for example, disable_port[7:5] is not supported in the RTL8366. 10.1. registers list part i all register values can be confi gured by eeprom via auto-load after po wer on, or pin reset. two bytes of eeprom configure 1 register of the rt l8366/rtl8369. for example, data 0x01 and 0x00 configure the register 0x0000. 0x01 is msb and 0x00 is lsb. if configuration of register 0x0000 is 0x2e04, eeprom data of 0x01 is 0x2e and 0x00 is 0x04. 10.1.1. eeprom mapped registers table 34. eeprom mapped registers eeprom address description register name bits default default en_bc_storm_ctrl [0] 0b0 internal use [1] 0b0 internal use [2] 0b1 reserved [3] 0b0 max_length[1:0] [5:4] 0b0 en_igmp [6] 0b0 en_arp [7] 0b0 dis_bp [8] 0b0 jam_mode [9] 0b1 en_48pass1 [10] 0b1 max_pause_cnt [11] 0b1 en_mlt_brd [12] 0b0 internal use [13] 0b1 internal use [14] 0b0 0x00 0x01 0x0000 switch global control register (sgcr) internal use [15] 0b0 0x2e04 disable_port[8:0] [8:0] 0x000 0x02 0x03 0x0001 port enable control register (pecr) reserved [15:9] 0x00 0x0000 dis_learn[8:0] [8:0] 0x000 0x04 0x05 0x0002 switch security control register 0 (sscr0) reserved [15:9] 0x00 0x0000 0x06 0x0003 switch security control dis_age[8:0] [8:0] 0x0 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 57 track id: jatr-1076-21 rev. 1.1 eeprom address description register name bits default default 0x07 register 1 (sscr1) reserved [15:9] 0x00 drop_unknown_da [0] 0b0 internal use [1] 0b0 internal use [2] 0b0 reserved [3] 0b0 internal use [4] 0b0 internal use [5] 0b1 internal use [6] 0b0 internal use [7] 0b0 reserved [9:8] 0b00 internal use [10] 0b0 0x08 0x09 0x0004 switch security control register 2 (sscr2) reserved [15:11] 0x00 0x0020 en_vlan [0] 0b0 vlan_tag_aware [1] 0b1 vlan_tag_admit [2] 0b0 en_ingress_rule [3] 0b1 en_uc_leaky [4] 0b0 en_arp_leaky [5] 0b0 en_ipmc_leaky [6] 0b0 internal use [7] 0b0 internal use [11:8] 0b0 en_tag_drop [12] 0b0 internal use [13] 0b1 0x0a 0x0b 0x0005 vlan/trunk control register 0 (vtcr0) p8_tag_control[1:0] [15:14] 0b0 0x200a p0_tag_control[1:0] [1:0] 0b00 p1_tag_control[1:0] [3:2] 0b00 p2_tag_control[1:0] [5:4] 0b00 p3_tag_control[1:0] [7:6] 0b00 p4_tag_control[1:0] [9:8] 0b00 p5_tag_control[1:0] [11:10] 0b00 p6_tag_control[1:0] [13:12] 0b00 0x0c 0x0d 0x0006 vlan/trunk control register 1 (vtcr1) p7_tag_control[1:0] [15:14] 0b00 0x0000 source_port[3:0] [3:0] 0x0 minitor_port[3:0] [7:4] 0x0 mirror_rx [8] 0b0 mirror_tx [9] 0b0 mirror_spc [10] 0b0 mirror_iso [11] 0b0 reserved [14:12] 0b00 0x0f 0x0007 port mirror control register (pmcr) internal use [15] 0b0 0x0000 0x10 0x11 0x0008 internal use n/a [15:0] 0x0800 0x0800 en_qos [0] 0b0 0x12 0x13 0x0009 qos control register 0 (qcr0) internal use [1] 0b0 0xf000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 58 track id: jatr-1076-21 rev. 1.1 eeprom address description register name bits default default en_port_pri [2] 0b0 en_ds_pri [3] 0b0 en_1q_pri [4] 0b0 qweight[1:0] [7:6] 0b00 vlan_pri_tab[7:0] [15:8] 0xf0 port_pri[8:0] [8:0] 0x000 0x14 0x15 0x000a qos control register 1 (qcr1) reserved [15:9] 0x00 0x0000 0x16 0x17 0x000b qos control register 2 (qcr2) tos[15:0] [15:0] 0x0000 0x0000 0x18 0x19 0x000c qos control register 3 (qcr3) tos[31:16] [15:0] 0x0000 0x0000 0x1a 0x1b 0x000d qos control register 4 (qcr4) tos[47:32] [15:0] 0x0000 0x0000 0x1c 0x1d 0x000e qos control register 5 (qcr5) tos[63:48] [15:0] 0x0000 0x0000 0x1e 0x1f 0x000f mac control packet control register 0 (mcpcr0) mltidst[15:0] [15:0] 0x5541 (strap) 0x5541 0x20 0x21 0x0010 mac control packet control register 1 (mcpcr1) mltidst[31:16] [15:0] 0x5555 (strap) 0x5555 port_ability0[7:0] [7:0] 0xff 0x22 0x23 0x0011 port advertising ability control register 0 (paacr0) port_ability1[7:0] [15:8] 0xff 0xffff port_ability2[7:0] [7:0] 0xff 0x24 0x25 0x0012 port advertising ability control register 1 (paacr1) port_ability3[7:0] [15:8] 0xff 0xffff port_ability4[7:0] [7:0] 0xff 0x26 0x27 0x0013 port advertising ability control register 2 (paacr2) port_ability5[7:0] [15:8] 0xff 0xffff port_ability6[7:0] [7:0] 0xff 0x28 0x29 0x0014 port advertising ability control register 3 (paacr3) port_ability7[7:0] [15:8] 0xff 0xffff port_ability8[7:0] [7:0] 0xff 0x2a 0x2b 0x0015 port advertising ability control register 4 (paacr4) reserved [15:8] 0x00 0x00ff vid0[11:0] [11:0] 0x100 0x2c 0x2d 0x0016 vlan id configuration register 0 (vidcr0) reserved [15:12] 0x0 0x0100 member0[8:0] [8:0] 0x081 0x2e 0x2f 0x0017 vlan member configuration register 0 (vmcr0) reserved [15:9] 0x00 0x0081 vid1[11:0] [11:0] 0x101 0x30 0x31 0x0018 vlan id configuration register 1 (vidcr1) reserved [15:12] 0x0 0x0101 member1[8:0] [8:0] 0x082 0x32 0x33 0x0019 vlan member configuration register 1 (vmcr1) reserved [15:9] 0x00 0x0082 vid2[11:0] [11:0] 0x102 0x34 0x35 0x001a vlan id configuration register 2 (vidcr2) reserved [15:12] 0x0 0x0102 member2[8:0] [8:0] 0x084 0x36 0x37 0x001b vlan member configuration register 2 (vmcr2) reserved [15:9] 0x00 0x0084 vid3[11:0] [11:0] 0x103 0x38 0x39 0x001c vlan id configuration register 3 (vidcr3) reserved [15:12] 0x0 0x0103 0x3a 0x001d vlan member configuration member3[8:0] [8:0] 0x088 0x0088
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 59 track id: jatr-1076-21 rev. 1.1 eeprom address description register name bits default default 0x3b register 3 (vmcr3) reserved [15:9] 0x00 vid4[11:0] [11:0] 0x104 0x3c 0x3d 0x001e vlan id configuration register 4 (vidcr4) reserved [15:12] 0x0 0x0104 member4[8:0] [8:0] 0x090 0x3e 0x3f 0x001f vlan member configuration register 4 (vmcr4) reserved [15:9] 0x00 0x0090 vid5[11:0] [11:0] 0x105 0x40 0x41 0x0020 vlan id configuration register 5 (vidcr5) reserved [15:12] 0x0 0x0105 member5[8:0] [8:0] 0x0a0 0x42 0x43 0x0021 vlan member configuration register 5 (vmcr5) reserved [15:9] 0x00 0x00a0 vid6[11:0] [11:0] 0x106 0x44 0x45 0x0022 vlan id configuration register 6 (vidcr6) reserved [15:12] 0x0 0x0106 member6[8:0] [8:0] 0xc0 0x46 0x47 0x0023 vlan member configuration register 6 (vmcr6) reserved [15:9] 0x00 0x00c0 vid7[11:0] [11:0] 0x107 0x48 0x49 0x0024 vlan id configuration register 7 (vidcr7) reserved [15:12] 0x0 0x0107 member7[8:0] [8:0] 0x0ff 0x4a 0x4b 0x0025 vlan member configuration register 7 (vmcr7) reserved [15:9] 0x00 0x00ff vid8[11:0] [11:0] 0x000 0x4c 0x4d 0x0026 vlan id configuration register 8 (vidcr8) reserved [15:12] 0x0 0x0000 member8[8:0] [8:0] 0x000 0x4e 0x4f 0x0027 vlan member configuration register 8 (vmcr8) reserved [15:9] 0x00 0x0000 vid9[11:0] [11:0] 0x000 0x50 0x51 0x0028 vlan id configuration register 9 (vidcr9) reserved [15:12] 0x0 0x0000 member9[8:0] [8:0] 0x000 0x52 0x53 0x0029 vlan member configuration register 9 (vmcr9) reserved [15:9] 0x00 0x0000 vid10[11:0] [11:0] 0x000 0x54 0x55 0x002a vlan id configuration register 10 (vidcr10) reserved [15:12] 0x0 0x0000 member10[8:0] [8:0] 0x000 0x56 0x57 0x002b vlan member configuration register 10 (vmcr10) reserved [15:9] 0x00 0x0000 vid11[11:0] [11:0] 0x000 0x58 0x59 0x002c vlan id configuration register 11 (vidcr11) reserved [15:12] 0x0 0x0000 member11[8:0] [8:0] 0x000 0x5a 0x5b 0x002d vlan member configuration register 11 (vmcr11) reserved [15:9] 0x00 0x0000 vid12[11:0] [11:0] 0x000 0x5c 0x5d 0x002e vlan id configuration register 12 (vidcr12) reserved [15:12] 0x0 0x0000 member12[8:0] [8:0] 0x000 0x5e 0x5f 0x002f vlan member configuration register 12 (vmcr12) reserved [15:9] 0x00 0x0000 vid13[11:0] [11:0] 0x000 0x60 0x61 0x0030 vlan id configuration register 13 (vidcr13) reserved [15:12] 0x0 0x0000 member13[8:0] [8:0] 0x000 0x62 0x63 0x0031 vlan member configuration register 13 (vmcr13) reserved [15:9] 0x00 0x0000 vid14[11:0] [11:0] 0x000 0x64 0x65 0x0032 vlan id configuration register 14 (vidcr14) reserved [15:12] 0x0 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 60 track id: jatr-1076-21 rev. 1.1 eeprom address description register name bits default default member14[8:0] [8:0] 0x000 0x66 0x67 0x0033 vlan member configuration register 14 (vmcr14) reserved [15:9] 0x00 0x0000 vid15[11:0] [11:0] 0x000 0x68 0x69 0x0034 vlan id configuration register 15 (vidcr15) reserved [15:12] 0x0 0x0000 member15[8:0] [8:0] 0x000 0x6a 0x6b 0x0035 vlan member configuration register 15 (vmcr15) reserved [15:9] 0x00 0x0000 led_mode[1:0] [1:0] 0b00 led_blink_time [2] 0b0 led_reset_blink [3] 0b0 internal use [5:4] 0b00 internal use [7:6] 0b00 internal use [9:8] 0b00 internal use [11:10] 0b00 internal use [12] 0b0 0x6c 0x6d 0x0036 led control register 0 (lcr0) reserved [15:13] 0b000 0x0000 0x6e 0x6f 0x0037 internal use n/a [15:0] 0x4305 0x4305 mib0_sela[1:0] [1:0] 0b01 mib0_selb[1:0] [3:2] 0b01 mib0_selc[1:0] [5:4] 0b00 reserved [7:6] 0b00 mib1_sela[1:0] [9:8] 0b01 mib1_selb[1:0] [11:10] 0b01 mib1_selc[1:0] [13:12] 0b00 0x70 0x71 0x0038 mib counter control register 0 (mccr0) reserved [15:14] 0b00 0x0505 mib2_sela[1:0] [1:0] 0b01 mib2_selb[1:0] [3:2] 0b01 mib2_selc[1:0] [5:4] 0b00 reserved [7:6] 0b00 mib3_sela[1:0] [9:8] 0b01 mib3_selb[1:0] [11:10] 0b01 mib3_selc[1:0] [13:12] 0b00 0x72 0x73 0x0039 mib counter control register 1 (mccr1) reserved [15:14] 0b00 0x0505 mib4_sela[1:0] [1:0] 0b01 mib4_selb[1:0] [3:2] 0b01 mib4_selc[1:0] [5:4] 0b00 reserved [7:6] 0b00 mib5_sela[1:0] [9:8] 0b01 mib5_selb[1:0] [11:10] 0b01 mib5_selc[1:0] [13:12] 0b00 0x74 0x75 0x003a mib counter control register 2 (mccr2) reserved [15:14] 0b00 0x0505 mib6_sela[1:0] [1:0] 0b01 mib6_selb[1:0] [3:2] 0b01 0x76 0x77 0x003b mib counter control register 3 (mccr3) mib6_selc[1:0] [5:4] 0b00 0x0505
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 61 track id: jatr-1076-21 rev. 1.1 eeprom address description register name bits default default reserved [7:6] 0b00 mib7_sela[1:0] [9:8] 0b01 mib7_selb[1:0] [11:10] 0b01 mib7_selc[1:0] [13:12] 0b00 reserved [15:14] 0b00 mib8_sela[1:0] [1:0] 0b01 mib8_selb[1:0] [3:2] 0b01 mib8_selc[1:0] [5:4] 0b00 0x78 0x79 0x003c mib counter control register 4 (mccr4) reserved [15:6] 0b00 0x0005 p0rxsts[1:0] [1:0] 0b11 p1rxsts[1:0] [3:2] 0b11 p2rxsts[1:0] [5:4] 0b11 p3rxsts[1:0] [7:6] 0b11 p4rxsts[1:0] [9:8] 0b11 p5rxsts[1:0] [11:10] 0b11 p6rxsts[1:0] [13:12] 0b11 0x7a 0x7b 0x003d rx spanning tree statistic register 0 (rstsr0) p7rxsts[1:0] [15:14] 0b11 0xffff p8rxsts[1:0] [1:0] 0b11 0x7c 0x7d 0x003e rx spanning tree statistic register 1 (rstsr1) reserved [15:3] 0x0000 0x0003 txsts[8:0] [8:0] 0x1ff 0x7e 0x7f 0x003f tx spanning tree statistic register (tstsr) reserved [15:9] 0x00 0x01ff 0x80 0x81 0x0040 internal use n/a [15:0] 0x0c18 0x0c18 0x82 0x83 0x0041 internal use n/a [15:0] 0x1120 0x1120 0x84 0x85 0x0042 internal use n/a [15:0] 0x000d 0x000d 0x86 0x87 0x0043 internal use n/a [15:0] 0x000d 0x000d 0x88 0x89 0x0044 reserved n/a [15:0] 0x0000 0x0000 0x8a 0x8b 0x0045 internal use n/a [15:0] 0x0000 0x0000 0x8c 0x8d 0x0046 switch mac address register 0 (smar0) switch_mac[15:0] [15:0] 0x0000 0x0000 0x8e 0x8f 0x0047 switch mac address register 1 (smar1) switch_mac[31:16] [15:0] 0x0000 0x0000 0x90 0x91 0x0048 switch mac address register 2 (smar2) switch_mac[47:32] [15:0] 0x0000 0x0000 0x92 0x93 0x0049 internal use internal use [15:0] 0x8899 0x8899 n/a [1:0] 0b00 0x94 0x95 0x004a internal use reserved [15:2] 0x0000 0x0000 n/a [7:0] 0xff 0x96 0x97 0x004b internal use reserved [15:8] 0x01 0x01ff
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 62 track id: jatr-1076-21 rev. 1.1 eeprom address description register name bits default default 0x98 0x99 0x004c internal use n/a [15:0] 0x8369 0x8369 0x9a 0x9b 0x004d switch ip address register 0 (siar0) sw_ip[15:0] [15:0] 0x0101 0x0101 0x9c 0x9d 0x004e switch ip address register 1 (siar1) sw_ip[31:16] [15:0] 0xc0a 8 0xc0a8 n/a [7:0] 0x00 0x9e 0x9f 0x004f internal use reserved [15:8] 0x00 0x0000 gpif_mode[2:0] [2:0] 0b000 internal use [3] 0b0 internal use [4] 0b0 internal use [5] 0b0 internal use [6] 0b0 p8_phy_link [7] 0b0 p8_phy_xfc[1:0] [9:8] 0b11 p8_phy_spd [10] 0b0 internal use [11] 0b0 p8rxc_delay [12] 0b1 p8txc_delay [13] 0b1 0xa0 0xa1 0x0050 p8 gmii control register (p8gcr) gpif_mode[4:3] [15:14] 0b11 0xf300 0xa2 0xa3 0x0051 system vendor id register 0 (svidr0) vendor_id[15:0] [15:0] 0x0000 0x0000 0xa4 0xa5 0x0052 system vendor id register 1 (svidr1) vendor_id[31:16] [15:0] 0x0000 0x0000 0xa6 0xa7 0x0053 internal use n/a [15:0] 0x7d1 b 0x7d1b 0xa8 0xa9 0x0054 internal use n/a [15:0] 0x0000 0x0000 0xaa 0xab 0x0055 internal use n/a [15:0] 0x0000 0x0000 0xac 0xad 0x0056 internal use n/a [15:0] 0x0000 0x0000 0xae 0xaf 0x0057 internal use n/a [15:0] 0x0000 0x0000 p0pvid[3:0] [3:0] 0x0 p1pvid[3:0] [7:4] 0x1 p2pvid[3:0] [11:8] 0x2 0xb0 0xb1 0x0058 port vlan index control register 0 (pvicr0) p3pvid[3:0] [15:12] 0x3 0x3210 p4pvid[3:0] [3:0] 0x4 p5pvid[3:0] [7:4] 0x5 p6pvid[3:0] [11:8] 0x6 0xb2 0xb3 0x0059 port vlan index control register 2 (pvicr1) p7pvid[3:0] [15:12] 0x7 0x7654 p8pvid[3:0] [3:0] 0x8 0xb4 0xb5 0x005a port vlan index control register 2 (pvicr2) reserved [15:4] 0x000 0x0008 0xb6 0x005b internal use n/a [8:0] 0x000 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 63 track id: jatr-1076-21 rev. 1.1 eeprom address description register name bits default default 0xb7 reserved [15:9] 0x00 0xb8~ 0xcf 0x005c~ 0x0067 reserved n/a [15:0] 0x0000 0x0000 0xd0~ 0xfd 0x0068~ 0x007e internal use n/a [15:0] 0x0000 0x0000 0xfe 0xff 0x007f internal use n/a [15:0] 0x0000 0x0000 10.2. registers list part ii table 35. registers list part ii address description register name bits default default chip_reset [0] 0b0 soft_reset [1] 0b0 mib_reset [2] 0b0 0x0100 reset control register (rcr) reserved [15:3] 0x0000 0x0000 n/a [8:0] 0x000 0x0101 internal use reserved [15:9] 0x00 0x0000 0x0102 internal use n/a 0x0008 0x0008 n/a [8:0] 0x000 reserved [11:9] 0b000 n/a [12] 0b1 n/a [13] 0b1 0x0103 internal use reserved [15:14] 0b00 0x3000 chip_ver[3:0] [3:0] 0x1 0x0104 chip version control register (cvcr) reserved [15:4] 0x000 0x0001 0x0105 internal use n/a [15:0] 0x8369 0x8369 0x0106~ 0x010b reserved n/a [15:0] 0x0000 0x0000 0x010c internal use n/a [15:0] n/a n/a 0x010d internal use n/a [15:0] n/a n/a 0x010e internal use n/a [15:0] n/a n/a en_vlan_tbl [0] 0b0 0x010f enable vlan table control register (evtcr) reserved [15:1] 0x0000 0x0000 0x0110 internal use n/a [15:0] 0x0000 0x0000 0x0111 internal use n/a [15:0] 0x0000 0x0000 0x0112 internal use n/a [15:0] 0x0000 0x0000 0x0113 internal use n/a [15:0] 0x0000 0x0000 phy_exec [0] 0b0 phy_rw [1] 0b0 0x0118 phy access control register 0 (phyacr0) reserved [15:2] 0x0000 0x0000 phy_add[4:0] [4:0] 0x00 0x0119 phy access control register 1 (phyacr1) reserved [15:5] 0x000 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 64 track id: jatr-1076-21 rev. 1.1 address description register name bits default default phy_reg[4:0] [4:0] 0x00 0x011a phy access control register 2 (phyacr2) reserved [15:5] 0x000 0x0000 0x011b phy access control register 3 (phyacr3) phy_data_in[15:0] [15:0] 0x0000 0x0000 0x011c phy access control register 4 (phyacr4) phy_data_out[15:0] [15:0] 0x0000 0x0000 0x011d~ 0x011f reserved n/a [15:0] 0x0000 0x0000 0x0120 port 0 mib counter a 0 (p0mib_cnta0) mib0_cnta[15:0] [15:0] 0x0000 0x0000 0x0121 port 0 mib counter a 1 (p0mib_cnta1) mib0_cnta[31:16] [15:0] 0x0000 0x0000 0x0122 port 0 mib counter b 0 (p0mib_cnta0) mib0_cntb[15:0] [15:0] 0x0000 0x0000 0x0123 port 0 mib counter b 1 (p0mib_cnta1) mib0_cntb[31:16] [15:0] 0x0000 0x0000 0x0124 port 0 mib counter c 0 (p0mib_cnta0) mib0_cntc[15:0] [15:0] 0x0000 0x0000 0x0125 port 0 mib counter c 1 (p0mib_cnta1) mib0_cntc[31:16] [15:0] 0x0000 0x0000 0x0126 port 1 mib counter a 0 (p1mib_cnta0) mib1_cnta[15:0] [15:0] 0x0000 0x0000 0x0127 port 1 mib counter a 1 (p1mib_cnta1) mib1_cnta[31:16] [15:0] 0x0000 0x0000 0x0128 port 1 mib counter b 0 (p1mib_cnta0) mib1_cntb[15:0] [15:0] 0x0000 0x0000 0x0129 port 1 mib counter b 1 (p1mib_cnta1) mib1_cntb[31:16] [15:0] 0x0000 0x0000 0x012a port 1 mib counter c 0 (p1mib_cnta0) mib1_cntc[15:0] [15:0] 0x0000 0x0000 0x012b port 1 mib counter c 1 (p1mib_cnta1) mib1_cntc[31:16] [15:0] 0x0000 0x0000 0x012c port 2 mib counter a 0 (p2mib_cnta0) mib2_cnta[15:0] [15:0] 0x0000 0x0000 0x012d port 2 mib counter a 1 (p2mib_cnta1) mib2_cnta[31:16] [15:0] 0x0000 0x0000 0x012e port 2 mib counter b 0 (p2mib_cnta0) mib2_cntb[15:0] [15:0] 0x0000 0x0000 0x012f port 2 mib counter b 1 (p2mib_cnta1) mib2_cntb[31:16] [15:0] 0x0000 0x0000 0x0130 port 2 mib counter c 0 (p2mib_cnta0) mib2_cntc[15:0] [15:0] 0x0000 0x0000 0x0131 port 2 mib counter c 1 (p2mib_cnta1) mib2_cntc[31:16] [15:0] 0x0000 0x0000 0x0132 port 3 mib counter a 0 (p3mib_cnta0) mib3_cnta[15:0] [15:0] 0x0000 0x0000 0x0133 port 3 mib counter a 1 (p3mib_cnta1) mib3_cnta[31:16] [15:0] 0x0000 0x0000 0x0134 port 3 mib counter b 0 (p3mib_cnta0) mib3_cntb[15:0] [15:0] 0x0000 0x0000 0x0135 port 3 mib counter b 1 (p3mib_cnta1) mib3_cntb[31:16] [15:0] 0x0000 0x0000 0x0136 port 3 mib counter c 0 (p3mib_cnta0) mib3_cntc[15:0] [15:0] 0x0000 0x0000 0x0137 port 3 mib counter c 1 (p3mib_cnta1) mib3_cntc[31:16] [15:0] 0x0000 0x0000 0x0138 port 4 mib counter a 0 (p4mib_cnta0) mib4_cnta[15:0] [15:0] 0x0000 0x0000 0x0139 port 4 mib counter a 1 (p4mib_cnta1) mib4_cnta[31:16] [15:0] 0x0000 0x0000 0x013a port 4 mib counter b 0 (p4mib_cnta0) mib4_cntb[15:0] [15:0] 0x0000 0x0000 0x013b port 4 mib counter b 1 (p4mib_cnta1) mib4_cntb[31:16] [15:0] 0x0000 0x0000 0x013c port 4 mib counter c 0 (p4mib_cnta0) mib4_cntc[15:0] [15:0] 0x0000 0x0000 0x013d port 4 mib counter c 1 (p4mib_cnta1) mib4_cntc[31:16] [15:0] 0x0000 0x0000 0x013e port 5 mib counter a 0 (p5mib_cnta0) mib5_cnta[15:0] [15:0] 0x0000 0x0000 0x013f port 5 mib counter a 1 (p5mib_cnta1) mib5_cnta[31:16] [15:0] 0x0000 0x0000 0x0140 port 5 mib counter b 0 (p5mib_cnta0) mib5_cntb[15:0] [15:0] 0x0000 0x0000 0x0141 port 5 mib counter b 1 (p5mib_cnta1) mib5_cntb[31:16] [15:0] 0x0000 0x0000 0x0142 port 5 mib counter c 0 (p5mib_cnta0) mib5_cntc[15:0] [15:0] 0x0000 0x0000 0x0143 port 5 mib counter c 1 (p5mib_cnta1) mib5_cntc[31:16] [15:0] 0x0000 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 65 track id: jatr-1076-21 rev. 1.1 address description register name bits default default 0x0144 port 6 mib counter a 0 (p6mib_cnta0) mib6_cnta[15:0] [15:0] 0x0000 0x0000 0x0145 port 6 mib counter a 1 (p6mib_cnta1) mib6_cnta[31:16] [15:0] 0x0000 0x0000 0x0146 port 6 mib counter b 0 (p6mib_cnta0) mib6_cntb[15:0] [15:0] 0x0000 0x0000 0x0147 port 6 mib counter b 1 (p6mib_cnta1) mib6_cntb[31:16] [15:0] 0x0000 0x0000 0x0148 port 6 mib counter c 0 (p6mib_cnta0) mib6_cntc[15:0] [15:0] 0x0000 0x0000 0x0149 port 6 mib counter c 1 (p6mib_cnta1) mib6_cntc[31:16] [15:0] 0x0000 0x0000 0x014a port 7 mib counter a 0 (p7mib_cnta0) mib7_cnta[15:0] [15:0] 0x0000 0x0000 0x014b port 7 mib counter a 1 (p7mib_cnta1) mib7_cnta[31:16] [15:0] 0x0000 0x0000 0x014c port 7 mib counter b 0 (p7mib_cnta0) mib7_cntb[15:0] [15:0] 0x0000 0x0000 0x014d port 7 mib counter b 1 (p7mib_cnta1) mib7_cntb[31:16] [15:0] 0x0000 0x0000 0x014e port 7 mib counter c 0 (p7mib_cnta0) mib7_cntc[15:0] [15:0] 0x0000 0x0000 0x014f port 7 mib counter c 1 (p7mib_cnta1) mib7_cntc[31:16] [15:0] 0x0000 0x0000 0x0150 port 8 mib counter a 0 (p8mib_cnta0) mib8_cnta[15:0] [15:0] 0x0000 0x0000 0x0151 port 8 mib counter a 1 (p8mib_cnta1) mib8_cnta[31:16] [15:0] 0x0000 0x0000 0x0152 port 8 mib counter b 0 (p8mib_cnta0) mib8_cntb[15:0] [15:0] 0x0000 0x0000 0x0153 port 8 mib counter b 1 (p8mib_cnta1) mib8_cntb[31:16] [15:0] 0x0000 0x0000 0x0154 port 8 mib counter c 0 (p6mib_cnta0) mib8_cntc[15:0] [15:0] 0x0000 0x0000 0x0155 port 8 mib counter c 1 (p8mib_cnta1) mib8_cntc[31:16] [15:0] 0x0000 0x0000 0x0156 internal use n/a [15:0] 0x0000 0x0000 0x0157 internal use n/a [15:0] 0x0000 0x0000 flowctrl[8:0] [8:0] 0x000 0x0158 flow control status register (fcsr) reserved [15:9] 0x00 0x0000 port_status0[7:0] [7:0] 0xe0 0x0159 port status register 0 (psr0) port_status1[7:0] [15:8] 0xe0 0xe0e0 port_status2[7:0] [7:0] 0xe0 0x015a port status register 1 (psr1) port_status3[7:0] [15:8] 0xe0 0xe0e0 port_status4[7:0] [7:0] 0xe0 0x015b port status register 2 (psr2) port_status5[7:0] [15:8] 0xe0 0xe0e0 port_status6[7:0] [7:0] 0xe0 0x015c port status register 3 (psr3) port_status7[7:0] [15:8] 0xe0 0xe0e0 port_status8[7:0] [7:0] 0xee 0x015d port status register 4 (psr4) reserved [15:8] 0x00 0x00ee 0x015e internal use n/a [15:0] n/a n/a 0x015f internal use n/a [15:0] n/a n/a 0x0160 internal use n/a [15:0] n/a n/a 0x0161 internal use n/a [15:0] n/a n/a 0x0162 internal use n/a [15:0] n/a n/a 0x0163 internal use n/a [15:0] n/a n/a 0x0164 internal use n/a [15:0] n/a n/a 0x0165 internal use n/a [15:0] n/a n/a 0x0166 internal use n/a [15:0] n/a n/a 0x0167 internal use n/a [15:0] n/a n/a 0x0168 internal use n/a [15:0] n/a n/a
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 66 track id: jatr-1076-21 rev. 1.1 address description register name bits default default 0x0169 internal use n/a [15:0] n/a n/a 0x016a internal use n/a [15:0] n/a n/a 0x016b internal use n/a [15:0] n/a n/a 0x016c internal use n/a [15:0] n/a n/a 0x016d internal use n/a [15:0] n/a n/a 0x016e internal use n/a [15:0] n/a n/a 0x016f internal use n/a [15:0] n/a n/a eeprom_existence [0] 0b0 internal use [1] 0b0 eerpom_rdy [2] 0b1 0x0170 eeprom status register (eepsr) reserved [15:3] 0x0000 0x0004 n/a [3:0] 0x0 0x0171 internal use reserved [15:4] 0x000 0x0000 0x0172 internal use n/a [15:0] n/a n/a 0x0173 internal use n/a [15:0] n/a n/a 0x0174 internal use n/a [15:0] n/a n/a 0x0175 internal use n/a [15:0] n/a n/a 0x0176 internal use n/a [15:0] n/a n/a 0x0177 internal use n/a [15:0] n/a n/a 0x0178 internal use n/a [15:0] n/a n/a 0x0179 internal use n/a [15:0] n/a n/a 0x017a internal use n/a [15:0] n/a n/a table_exec [0] 0b0 reserved [7:1] 0x00 table_cmd[2:0] [10:8] 0b000 0x0180 lookup & vlan table access control register (lvtacr) reserved [15:11] 0x00 0x0000 0x0182 lookup & vlan table data input register 0 (lvtdir0) wd[15:0] [15:0] 0x0000 0x0000 0x0183 lookup & vlan table data input register 1 (lvtdir1) wd[31:16] [15:0] 0x0000 0x0000 0x0184 lookup & vlan table data input register 2 (lvtdir2) wd[47:32] [15:0] 0x0000 0x0000 0x0185 lookup & vlan table data input register 3 (lvtdir3) wd[63:48] [15:0] 0x0000 0x0000 wd[69:64] [5:0] 0x00 0x00 0x0186 lookup & vlan table data input register 4 (lvtdir4) reserved [15:6] 0x000 0x000 0x0188 lookup & vlan table data output register 0 (lvtdor0) rd[15:0] [15:0] 0x0000 0x0000 0x0189 lookup & vlan table data output register 1 (lvtdor1) rd[31:16] [15:0] 0x0000 0x0000 0x018a lookup & vlan table data output register 2 (lvtdor2) rd[47:32] [15:0] 0x0000 0x0000 0x018b ? 0x018f reserved n/a [15:0] 0x0000 0 0x0000 0x0190 internal use n/a [15:0] 0x0000 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 67 track id: jatr-1076-21 rev. 1.1 address description register name bits default default 0x0191 reserved n/a [15:0] 0x0000 0x0000 0x0192 internal use n/a [15:0] n/a n/a 0x0193 internal use n/a [15:0] n/a n/a 0x0194 internal use n/a [15:0] 0x01ff 0x01ff 0x0195 internal use n/a [15:0] 0x0000 0x0000 0x0196 internal use n/a [15:0] 0x0001 0x0001 0x0197 internal use n/a [15:0] 0x0001 0x0001 0x0198 internal use n/a [15:0] 0x0000 0x0000 0x0199 internal use n/a [15:0] 0x0040 0x0040 0x019a internal use n/a [15:0] 0xffff 0xffff 0x019b internal use n/a [15:0] 0xffff 0xffff 0x019c internal use n/a [15:0] 0xffff 0xffff 0x019d internal use n/a [15:0] 0x0009 0x0009 0x019e internal use n/a [15:0] 0x4c00 0x4c00 0x019f internal use n/a [15:0] 0x5452 0x5452 0x01a0~ 0x01df internal use n/a [15:0] n/a n/a 0x01e0~ 0x01ff reserved n/a [15:0] 0x0000 0x0000 0x0200 internal use n/a [15:0] 0x0000 0x0000 0x0201 internal use n/a [15:0] 0x0003 0x0003 0x0202 internal use n/a [15:0] 0x0000 0x0000 0x0203 internal use n/a [15:0] 0x0000 0x0000 0x0204 internal use n/a [15:0] 0x0000 0x0000 0x0205 internal use n/a [15:0] 0x0000 0x0000 0x0206 internal use n/a [15:0] 0x0000 0x0000 0x0207 internal use n/a [15:0] 0x0000 0x0000 0x0208 internal use n/a [15:0] 0x0000 0x0000 0x0209 internal use n/a [15:0] 0x0000 0x0000 0x020a internal use n/a [15:0] 0x0000 0x0000 0x020b~ 0x020f reserved n/a [15:0] 0x0000 0x0000 0x0210~ 0x021a internal use n/a [15:0] same as 0x0200: 0x021a 0x021b~ 0x021f reserved n/a [15:0] 0x0000 0x0000 0x0220~ 0x022a internal use n/a [15:0] same as 0x0200: 0x021a 0x022b~ 0x022f reserved n/a [15:0] 0x0000 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 68 track id: jatr-1076-21 rev. 1.1 address description register name bits default default 0x0230~ 0x023a internal use n/a [15:0] same as 0x0200: 0x021a 0x023b~ 0x023f reserved n/a [15:0] 0x0000 0x0000 0x0240~ 0x024a internal use n/a [15:0] same as 0x0200: 0x021a 0x024b~ 0x024f reserved n/a [15:0] 0x0000 0x0000 0x0250~ 0x025a internal use n/a [15:0] same as 0x0200: 0x021a 0x025b~ 0x025f reserved n/a [15:0] 0x0000 0x0000 0x0260~ 0x026a internal use n/a [15:0] same as 0x0200: 0x021a 0x026b~ 0x026f reserved n/a [15:0] 0x0000 0x0000 0x0270~ 0x027a internal use n/a [15:0] same as 0x0200: 0x021a 0x027b~ 0x027f reserved n/a [15:0] 0x0000 0x0000 0x0280~ 0x028a internal use n/a [15:0] same as 0x0200: 0x021a 0x028b~ 0x028f reserved n/a [15:0] 0x0000 0x0000 0x0290 internal use n/a [15:0] 0x0000 0x0000 0x0291 internal use n/a [15:0] 0xffff 0xffff 0x0292 internal use n/a [15:0] 0x0000 0x0000 0x0293 internal use n/a [15:0] 0x0000 0x0000 0x0294~ 0xffff reserved n/a [15:0] 0x0000 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 69 track id: jatr-1076-21 rev. 1.1 10.3. registers description part i 10.3.1. 0x0000: switch global control register (sgcr) table 36. 0x0000: switch globa l control register (sgcr) reg. bits name description r/w default 0 en_bc_storm_ctrl enable broadcast storm filtering control. set enables the broadcast storm filtering control function. 0b1: enable broadcast storm filtering control 0b0: disable broadcast storm filtering control r/w 0b0 1 internal use n/a r/w 0b0 2 internal use n/a r/w 0b1 3 reserved 0b0 5:4 max_length[1:0] configures the maximum length of valid packets. 0b00: 1522 bytes 0b01: 1536 bytes 0b10: 1552 bytes 0b11: 9216 bytes r/w 0b00 6 en_igmp enables igmp (da=01-00-5e-00-00-00 to 01-00- 5e-7f-ff-ff) snooping. 0b0: disabled 0b1: enabled r/w 0b0 7 en_arp enables the awareness of arp packet (ethertype=0x0806). 0b0: disable awareness of arp packets 0b1: enable awareness of arp packets r/w 0b0 8 dis_bp disables half duplex flow control features. 0b0: enable half duplex flow control features 0b1: disable half duplex flow control features r/w 0b0 9 jam_mode there are two half duplex flow control modes. one is back-pressure mode, the other is defer mode. 0b0: back-pressure mode 0b1: defer mode r/w 0b1 10 en_48pass1 enables receiving a packet after 48 consecutive back-pressure packets. 0b0: no 48 pass 1 0b1: enabled. r/w 0b1 0x000 11 max_pause_cnt limits the maximum consecutive pause frame number when congestion occurs. 0b0: limit to maximum of 128 consecutive pause frames. 0b1: un-limit the max consecutive pause frame number. r/w 0b1
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 70 track id: jatr-1076-21 rev. 1.1 reg. bits name description r/w default 12 en_mlt_brd configures the multicast and broadcast packet egress drop policy. when any of the destination ports of the packet is in a congestion state, this bit controls whether the packet should be dropped at ingress or egress. 0b0: drops the packet at ingress 0b1: drops the packet at egress r/w 0b0 13 internal use n/a r/w 0b1 14 internal use n/a r/w 0b0 15 internal use n/a r/w 0b0 8:0 dis_learn[8:0] 0b0: enables learning of packets received from the port 0b1: disables learning of packets received from the port r/w 0x000 0x0002 15:9 reserved 0x00 8:0 dis_age[8:0] 0b0: enables auto aging of packets received from the port 0b1: disables auto aging of packets received from the port r/w 0x000 0x0003 15:9 reserved 0x00 0 drop_unknow_da 0b0: do not drop packets whose da has not been learned 0b1: drop packets whose da has not been learned note: even if the learning function is enabled, the switch will not learn the sa of dropped packets. r/w 0b0 1 internal use n/a r/w 0b0 2 internal use n/a r/w 0b0 3 reserved 0b0 4 internal use n/a r/w 0b0 5 internal use n/a r/w 0b1 6 internal use n/a r/w 0b0 7 internal use n/a r/w 0b0 9:8 reserved 0b00 10 internal use n/a r/w 0b0 0x0004 15:11 reserved 0x00
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 71 track id: jatr-1076-21 rev. 1.1 10.3.2. 0x0005 ~ 0x0006: vlan/trunk control register 0-1 (vtcr0-1) table 37. 0x0005 ~ 0x0006: vlan/trunk control register 0-1 (vtcr0-1) reg. bits name description r/w default 0 en_vlan enable vlan function. when the vlan function is enabled, the power- on default vlan topology is 8 home vlans for non-eeprom environments. 0b0: disables the vlan function 0b1: enables the vlan function r/w 0b0 1 vlan_tag_aware ieee 802.1q vlan tag aware. if 802.1q vlan aware is enabled, the switch will identify the vlan by the vid of the vlan tag for tagged frames, and by the pvid of each ingress port for un-tagged frames. if 802.1q vlan aware is disabled , the switch will identify the vlan by the pvid of each ingress port for all frames. 0b0: disable 802.1q vlan aware 0b1: enable 802.1q vlan aware r/w 0b1 2 vlan_tag_admit ingress rule for acceptable frame types control. if this parameter is set to ?admit only vlan- tagged frames?, any frames received on that port that carry no vid (i.e., untagged frames or priority-tagged frames) are discarded. if this parameter is set to ?admit all frames?, all incoming priority-tagged and untagged frames are associated with a vlan by the ingress rule on the receiving port. 0b0: admit all frames 0b1: admit only vlan-tagged frames r/w 0b0 3 en_ingress_rule ingress rule for ingress member filtering control. if the en_ingress_rule is set, then all frames received on a port whos e vlan classification does not include that port in its member set shall be discarded. 0b0: disable ingress member set filtering 0b1: enable ingress member set filtering r/w 0b1 0x0005 4 en_uc_leaky unicast packet inter-vlan leaky control. enables inter-vlan communication for unicast forwarding packets. normally, inter-vlan packet switching is not valid. the rtl8369 supports a control bit that enables inter-vlan communication in the switch without an external router. 0b0: disable 0b1: enable r/w 0b0
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 72 track id: jatr-1076-21 rev. 1.1 reg. bits name description r/w default 5 en_arp_leaky arp broadcast packet inter-vlan leaky control. enables inter-vlan communication for arp broadcast packets (da=ff-ff-ff-ff-ff-ff and ethertype=0x0806) forwarding. 0b0: disable 0b1: enable note: before enabling this function, en_arp in the sgcr register (0x0000) must be enabled. r/w 0b0 6 en_ipmc_leaky ip multicast pack et inter-vlan leaky control. enables inter-vlan communication for ip multicast packet (da=01-00-5e-00-00-00 to 01- 00-5e-7f-ff-ff) forwarding. 0b0: disable 0b1: enable note: before enabling this function, en_igmp in the sgcr register (0x0000) must be enabled. r/w 0b0 7 internal use n/a r/w 0b0 11:8 internal use n/a r/w 0x0 12 en_tg_drop enables dropping of vlan tagged packets. 0b0: normal operation 0b1: drop vlan tagged packets r/w 0b0 13 internal use n/a r/w 0b1 15:14 p8_tag_control[1:0] vlan tagging un-tagging control. 0b00: keep all packets unchanged 0b01: insert vlan tag acco rding to the pvid of the ingress port 0b10: remove vlan-tagged for tagged frame 0b11: insert priority tag according to the priority of the packet r/w 0b00 1:0 p0_tag_control[1:0] vlan tagging/un-tagging control. 0b00: keep all packets unchanged 0b01: insert vlan tag acco rding to the pvid of the ingress port 0b10: remove vlan-tagged for tagged frame 0b11: insert priority tag according to the priority of the packet r/w 0b00 3:2 p1_tag_control[1:0] same as p0_tag_control[1:0] r/w 0b00 5:4 p2_tag_control[1:0] same as p0_tag_control[1:0] r/w 0b00 7:6 p3_tag_control[1:0] same as p0_tag_control[1:0] r/w 0b00 9:8 p4_tag_control[1:0] same as p0_tag_control[1:0] r/w 0b00 11:10 p5_tag_control[1:0] same as p0_tag_control[1:0] r/w 0b00 13:12 p6_tag_control[1:0] same as p0_tag_control[1:0] r/w 0b00 0x0006 15:14 p7_tag_control[1:0] same as p0_tag_control[1:0] r/w 0b00
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 73 track id: jatr-1076-21 rev. 1.1 10.3.3. 0x0007: port mirror control register (pmcr) table 38. 0x0007: port mirror control register (pmcr) reg. bits name description r/w default 3:0 source_port[3:0] select the source port to be mirrored. r/w 0x0 7:4 monitor_port[3:0] select the monitor port. r/w 0x0 8 mirror_rx enable the mirror function on rx of the source port. 0b0: disable 0b1: enable r/w 0b0 9 mirror_tx enable the mirror function on tx of the source port. 0b0: disable 0b1: enable r/w 0b0 10 mirror_spc enable forwarding of rx pause frames to mirror port. 0b0: disable 0b1: enable r/w 0b0 11 mirror_iso enable isolation of tx traffic on the monitor port. 0b0: normal operation 0b1: the monitor port will accept only packets from the source port. other packets destined to the monitor port will be dropped. r/w 0b0 14:12 reserved 0b000 0x0007 15 internal use n/a r/w 0b0
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 74 track id: jatr-1076-21 rev. 1.1 10.3.4. 0x0009 ~ 0x000e: qos control register 0-5 (qcr0-5) table 39. 0x0009 ~ 0x000e: qos control register 0-5 (qcr0-5) reg. bits name description r/w default 0 en_qos enable the qos function. 0b0: disable all qos functions 0b1: enable qos functions r/w 0b0 1 internal use n/a r/w 0b0 2 en_port_pri enable port priority qos. when the bit is set, the port_pri register will be used to classify the priority of the packets. 0b0: disable 0b1: enable note: en_qos in register qcr0 (0x0009) must be enabled first. r/w 0b0 3 en_ds_pri enable ip differential service based priority classification. when this bit is set, the tos[63:0] field of ip packets will be used to classify the priority of the packets. 0b0: disable 0b1: enable note: en_qos in register qcr0 (0x0009) must be enabled first. r/w 0b0 4 en_1q_pri enable 802.1q vlan tag base priority classification. when the bit is set, the vlan tag is compared with pri_threshold[2:0]. if the priority field in the vlan tag > pri_threshold then the packet is a high priority packet. other cases are classified as low priority packets. 0b0: disable 0b1: enable note: en_qos in register qcr0 (0x0009) must be enabled first. r/w 0b0 7:6 qweight[1:0] the ratio of high priority packet and low priority packet to send when qos is enabled. 0b00: 4:1 0b01: 8:1 0b10: 16:1 0b11: unlimited r/w 0b00 0x0009 15:8 vlan_pri_tab[7:0] sets the vlan tag user priority field to high/low priority. for example, if vlan_pri_tab[7:0]=0b10101010, that means that packets with vlan tag user_priority[2:0]=0x1, 0x3, 0x5, 0x7 are high priority packets. 0b0: low priority 0b1: high priority r/w 0xf0
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 75 track id: jatr-1076-21 rev. 1.1 reg. bits name description r/w default 8:0 port_pri[8:0] the priority of the ports when en_port_pri is set. 0b0: low priority 0b1: high priority r/w 0x000 0x000a 15:9 reserved 0x00 0x000b 15:0 tos[15:0] r/w 0x0000 0x000c 15:0 tos[31:16] r/w 0x0000 0x000d 15:0 tos[47:32] r/w 0x0000 0x000e 15:0 tos[63:48] the ip differential service table. tos[0] indicates the priority of differential service code 000000 tos[1] indicates the priority of differential service code 000001 tos[32] indicates the priority of differential service code 100000 tos[63] indicates the priority of differential service code 111111 etc?. 0b0: low priority 0b1: high priority r/w 0x0000 10.3.5. 0x000f ~ 0x0010: mac control pa cket control register 0-1 (mcpcr0-1) table 40. 0x000f ~ 0x0010: mac control packet control register 0-1 (mcpcr0-1) reg. bits name description r/w default 0x000f 15:0 mltid_st[7:0][1:0] r/w 0x5541 (strap) 0x0010 15:0 mltid_st[15:8][1:0] the forwarding control for well-known multicast addresses (0180c2000000~0180c200000f). {mltid_st[n][1:0]} indicates forwarding of 0180c200000n addressed packets. for n=1, 0180c2000001, mcpcr0[3:2]=mltid_st[1][1:0], pause frames are always filtered when configured as 0b01 (forward). for n =2, 0180c2000002, mcpcr0[5:4]=mltid_st[1][1:0], packets are always filtered when configured as 0b01 (forward). mltd_st[n][1:0]=0b00: drop mltd_st[n][1:0]=0b01: forward mltd_st[n][1:0]=others: reserved r/w 0x5555 (strap)
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 76 track id: jatr-1076-21 rev. 1.1 10.3.6. 0x0011 ~ 0x0015: port advertis ing ability control register 0-4 (paacr0-4) table 41. 0x0011 ~ 0x0015: port advertisi ng ability control register 0-4 (paacr0-4) reg. bits name description r/w default 0 port0_ability[0] (port0_an) enables auto negotiation. this bit will be reflected in phy register 0.12. 0b0: disable auto negotiation 0b1: enable auto negotiation r/w 0b1 1 port0_ability[1] (port0_10h) enables 10m half duplex mode ability. this bit will be reflected in phy register 4.5 0b0: disable 10m half duplex mode ability 0b1: enable 10m half duplex mode ability r/w 0b1 2 port0_ability[2] (port0_10f) enables 10m full duplex mode ability. this bit will be reflected in phy register 4.6 0b0: disable 10m full duplex mode ability 0b1: enable 10m full duplex mode ability r/w 0b1 3 port0_ability[3] (port0_100h) enables 100m half duplex mode ability. this bit will be reflected in phy register 4.7 0b0: disable 100m half duplex mode ability 0b1: enable 100m half duplex mode ability r/w 0b1 4 port0_ability[4] (port0_100f) enables 100m full duplex mode ability this bit will be reflected in phy register 4.8 0b0: disable 100m full duplex mode ability 0b1: enable 100m full duplex mode ability r/w 0b1 5 port0_ability[5] (port0_1000f) enables 1000m full duplex mode ability. this bit will be reflected in phy register 9.9 0b0: disable 1000m full duplex mode ability 0b1: enable 1000m full duplex mode ability r/w 0b1 6 port0_ability[6] (port0_fc) enables flow control ability. this bit will be reflected in phy register 4.10 r/w 0b1 7 port0_ability[7] (port0_asyfc) enables flow control ability. this bit will be reflected in phy register 4.11 r/w 0b1 0x0011 15:8 port1_ability[7:0] same as port0_ability[7:0] r/w 0xff 7:0 port2_ability[7:0] same as port0_ability[7:0] r/w 0xff 0x0012 15:8 port3_ability[7:0] same as port0_ability[7:0] r/w 0xff 7:0 port4_ability[7:0] same as port0_ability[7:0] r/w 0xff 0x0013 15:8 port5_ability[7:0] same as port0_ability[7:0] r/w 0xff 7:0 port6_ability[7:0] same as port0_ability[7:0] r/w 0xff 0x0014 15:8 port7_ability[7:0] same as port0_ability[7:0] r/w 0xff 7:0 port8_ability[7:0] same as port0_ability[7:0] r/w 0xff 0x0015 15:8 reserved 0x00
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 77 track id: jatr-1076-21 rev. 1.1 10.3.7. 0x0016/0018/?/0034: vlan id co nfiguration register 0-15 (vidcr0-15) table 42. 0x0016/0018/?/0034: vlan id configuration register 0-15 (vidcr0-15) reg. bits name description r/w default 11:0 vid0[11:0] the vid of vlan group 0. r/w 0x100 0x0016 15:12 reserved 0x0 11:0 vid1[11:0] the vid of vlan group 1. r/w 0x101 0x0018 15:12 reserved 0x0 11:0 vid2[11:0] the vid of vlan group 2. r/w 0x102 0x001a 15:12 reserved 0x0 11:0 vid3[11:0] the vid of vlan group 3. r/w 0x103 0x001c 15:12 reserved 0x0 11:0 vid4[11:0] the vid of vlan group 4. r/w 0x104 0x001e 15:12 reserved 0x0 11:0 vid5[11:0] the vid of vlan group 5. r/w 0x105 0x0020 15:12 reserved 0x0 11:0 vid6[11:0] the vid of vlan group 6. r/w 0x106 0x0022 15:12 reserved 0x0 11:0 vid7[11:0] the vid of vlan group 7. r/w 0x107 0x0024 15:12 reserved 0x0 11:0 vid8[11:0] the vid of vlan group 8. r/w 0x000 0x0026 15:12 reserved 0x0 11:0 vid9[11:0] the vid of vlan group 9. r/w 0x000 0x0028 15:12 reserved 0x0 11:0 vid10[11:0] the vid of vlan group 10. r/w 0x000 0x002a 15:12 reserved 0x0 11:0 vid11[11:0] the vid of vlan group 11. r/w 0x000 0x002c 15:12 reserved 0x0 11:0 vid12[11:0] the vid of vlan group 12. r/w 0x000 0x002e 15:12 reserved 0x0 11:0 vid13[11:0] the vid of vlan group 13. r/w 0x000 0x0030 15:12 reserved 0x0 11:0 vid14[11:0] the vid of vlan group 14. r/w 0x000 0x0032 15:12 reserved 0x0 11:0 vid15[11:0] the vid of vlan group 15. r/w 0x000 0x0034 15:12 reserved 0x0
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 78 track id: jatr-1076-21 rev. 1.1 10.3.8. 0x0017/0019/?/0035: vlan memb er configuration register 0-15 (vmcr0-15) table 43. 0x0017/0019/?/0035: vlan member conf iguration register 0-15 (vmcr0-15) reg. bits name description r/w default 8:0 member0[8:0] the vlan member set of vlan group 0. r/w 0x081 0x0017 15:9 reserved 0x00 8:0 member1[8:0] the vlan member set of vlan group 1. r/w 0x082 0x0019 15:9 reserved 0x00 8:0 member2[8:0] the vlan member set of vlan group 2. r/w 0x084 0x001b 15:9 reserved 0x00 8:0 member3[8:0] the vlan member set of vlan group 3. r/w 0x088 0x001d 15:9 reserved 0x00 8:0 member4[8:0] the vlan member set of vlan group 4. r/w 0x090 0x001f 15:9 reserved 0x00 8:0 member5[8:0] the vlan member set of vlan group 5. r/w 0x0a0 0x0021 15:9 reserved 0x00 8:0 member6[8:0] the vlan member set of vlan group 6. r/w 0x0c0 0x0023 15:9 reserved 0x00 8:0 member7[8:0] the vlan member set of vlan group 7. r/w 0x0ff 0x0025 15:9 reserved 0x00 8:0 member8[8:0] the vlan member set of vlan group 8. r/w 0x000 0x0027 15:9 reserved 0x00 8:0 member9[8:0] the vlan member set of vlan group 9. r/w 0x000 0x0029 15:9 reserved 0x00 8:0 member10[8:0] the vlan member set of vlan group 10. r/w 0x000 0x002b 15:9 reserved 0x00 8:0 member11[8:0] the vlan member set of vlan group 11. r/w 0x000 0x002d 15:9 reserved 0x00 8:0 member12[8:0] the vlan member set of vlan group 12. r/w 0x000 0x002f 15:9 reserved 0x00 8:0 member13[8:0] the vlan member set of vlan group 13. r/w 0x000 0x0031 15:9 reserved 0x00 8:0 member14[8:0] the vlan member set of vlan group 14. r/w 0x000 0x0033 15:9 reserved 0x00 8:0 member15[8:0] the vlan member set of vlan group 15. r/w 0x000 0x0035 15:9 reserved 0x00
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 79 track id: jatr-1076-21 rev. 1.1 10.3.9. 0x0036 ~ 0x0037: led control register 0-1 (lcr0-1) table 44. 0x0036 ~ 0x0037: led control register 0-1 (lcr0-1) reg. bits name description r/w default 1:0 led_mode[1:0] led mode configuration. 0b00: duplex/col, link/act, 1000m, 100m/10m 0b01: duplex/col, 1000m link/act, 100m link/act, 10m link/act. 0b10: bicolor led (1000m+link/act, 100m/10m+link/act), nc, nc, nc. 0b11: serial led mode. r/w 0b00 2 led_blink_time led blink time configuration. 0b0: 43 msec. 0b1: 120 msec. r/w 0b0 3 led_reset_blink led behavior at power on reset. 0b0: led does not blink during power on reset 0b1: led blinks during power on reset r/w 0b1 5:4 gpled0[1:0] r/w 0b00 7:5 gpled1[1:0] r/w 0b00 9:8 gpled2[1:0] r/w 0b00 11:10 gpled3[1:0] general purpose led behavior configuration. these registers are only valid when led_mode=0b11. r/w 0b00 12 internal use n/a r/w 0b0 0x0036 15:13 reserved 0b000 3:0 internal use r/w 0x5 7:4 internal use r/w 0x0 11:8 internal use r/w 0x3 0x0037 15:12 internal use n/a r/w 0x4 10.3.10. 0x0038 ~ 0x003c: mib count er control register 0-4 (mccr0-4) table 45. 0x0038 ~ 0x003c: mib counter control register 0-4 (mccr0-4) reg. bits name description r/w default 1:0 mib0_sela[1:0] defines the mib counter cnta of port 0. 0b00: tx byte count 0b01: tx packet count others: reserved r/w 0b01 0x0038 3:2 mib0_selb[1:0] defines the mib counter cntb of port 0. 0b00: rx byte count 0b01: rx packet count others: reserved r/w 0b01
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 80 track id: jatr-1076-21 rev. 1.1 reg. bits name description r/w default 5:4 mib0_selc[1:0] defines the mib counter cntc of port 0. 0b00: rx error packet count 0b01: rx drop packet count 0b10: collision count 0b11: reserved r/w 0b00 7:6 reserved 0b00 9:8 mib1_sela[1:0] same as mib0_sela[1:0]. r/w 0b01 11:10 mib1_selb[1:0] same as mib0_selb[1:0]. r/w 0b01 13:12 mib1_selc[1:0] same as mib0_selc[1:0]. r/w 0b00 15:14 reserved 0b00 1:0 mib2_sela[1:0] same as mib0_sela[1:0]. r/w 0b01 3:2 mib2_selb[1:0] same as mib0_selb[1:0]. r/w 0b01 5:4 mib2_selc[1:0] same as mib0_selc[1:0]. r/w 0b00 7:6 reserved 0b00 9:8 mib3_sela[1:0] same as mib0_sela[1:0]. r/w 0b01 11:10 mib3_selb[1:0] same as mib0_selb[1:0]. r/w 0b01 13:12 mib3_selc[1:0] same as mib0_selc[1:0]. r/w 0b00 0x0039 15:14 reserved 0b00 1:0 mib4_sela[1:0] same as mib0_sela[1:0]. r/w 0b01 3:2 mib4_selb[1:0] same as mib0_selb[1:0]. r/w 0b01 5:4 mib4_selc[1:0] same as mib0_selc[1:0]. r/w 0b00 7:6 reserved 0b00 9:8 mib5_sela[1:0] same as mib0_sela[1:0]. r/w 0b01 11:10 mib5_selb[1:0] same as mib0_selb[1:0]. r/w 0b01 13:12 mib5_selc[1:0] same as mib0_selc[1:0]. r/w 0b00 0x003a 15:14 reserved 0b00 1:0 mib6_sela[1:0] same as mib0_sela[1:0]. r/w 0b01 3:2 mib6_selb[1:0] same as mib0_selb[1:0]. r/w 0b01 5:4 mib6_selc[1:0] same as mib0_selc[1:0]. r/w 0b00 7:6 reserved 0b00 9:8 mib7_sela[1:0] same as mib0_sela[1:0]. r/w 0b01 11:10 mib7_selb[1:0] same as mib0_selb[1:0]. r/w 0b01 13:12 mib7_selc[1:0] same as mib0_selc[1:0]. r/w 0b00 0x003b 15:14 reserved 0b00 1:0 mib8_sela[1:0] same as mib0_sela[1:0]. r/w 0b01 3:2 mib8_selb[1:0] same as mib0_selb[1:0]. r/w 0b01 5:4 mib8_selc[1:0] same as mib0_selc[1:0]. r/w 0b00 0x003c 15:6 reserved 0b00
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 81 track id: jatr-1076-21 rev. 1.1 10.3.11. 0x003d ~ 0x003e: rx spanning tree status register 0-1 (rstsr0-1) table 46. 0x003d ~ 0x003e: rx spanning tree status register 0-1 (rstsr0-1) reg. bits name description r/w default 1:0 p0rxsts[1:0] 0b00: disable 0b01: blocking/listening 0b10: learning 0b11: normal receiving. r/w 0b11 3:2 p1rxsts[1:0] same as p0rxsts[1:0] r/w 0b11 5:4 p2rxsts[1:0] same as p0rxsts[1:0] r/w 0b11 7:6 p3rxsts[1:0] same as p0rxsts[1:0] r/w 0b11 9:8 p4rxsts[1:0] same as p0rxsts[1:0] r/w 0b11 11:10 p5rxsts[1:0] same as p0rxsts[1:0] r/w 0b11 13:12 p6rxsts[1:0] same as p0rxsts[1:0] r/w 0b11 0x003d 15:14 p7rxsts[1:0] same as p0rxsts[1:0] r/w 0b11 1:0 p8rxsts[1:0] same as p0rxsts[1:0] r/w 0b11 0x003e 15:2 reserved 0x0000 10.3.12. 0x003f: tx spanning tree status register (tstsr) table 47. 0x003f: tx spanning tree status register (tstsr) reg. bits name description r/w default 8:0 txsts[8:0] 0b0: stop forwarding for port n 0b1: normal forwarding for port n r/w 0x1ff 0x003f 15:9 reserved 0x00 10.3.13. 0x0046 ~ 0x0048: swit ch mac address register 0-3 (smar0-3) table 48. 0x0046 ~ 0x0048: switch mac address register 0-3 (smar0-3) reg. bits name description r/w default 0x0046 15:0 switch_mac[15:0] r/w 0x0000 0x0047 15:0 switch_mac[31:16] r/w 0x0000 0x0048 15:0 switch_mac[47:32] switch mac address configuration. for example, if the switch mac address=12-34- 56-78-9a-bc. switch_mac[15:0]=0x3412 switch_mac[31:16]=0x7856 switch_mac[47:32]=0xbc9a r/w 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 82 track id: jatr-1076-21 rev. 1.1 10.3.14. 0x004d ~ 0x004e: switch ip a ddress register 0-1 (siar0-1) table 49. 0x004d ~ 0x004e: switch ip address register 0-1 (siar0-1) reg. bits name description r/w default 0x004d 15:0 sw_ip[15:0] r/w 0x0101 0x004e 15:0 sw_ip[31:16] the ip address of the switch. the default ip is 192.168.1.1 for example, if the switch ip address=192.168.1.2=c0.a8.01.02. switch_ip[31:16]=0xc0a8. switch_ip[15:0]=0x0101. r/w 0xc0a8 10.3.15. 0x0050: port 8 gmii cont rol register (p8gcr) table 50. 0x0050: port 8 gmii control register (p8gcr) reg. bits name description r/w default 2:0 gpif_mode[2:0] general purpose interface mode configuration bit 2-0: configures the genera l purpose interface as gmii/rgmii/mii phy when gpif_mode[4:3]=0b11. note that mii phy mode only supports 100mbps mode. 0b000: gmii/mii mac mode 0b001: rgmii 0b100: mii phy mode others: reserved r/w 0b000 3 internal use r/w 0b0 4 internal use r/w 0b0 5 internal use r/w 0b0 6 internal use r/w 0b0 7 p8_phy_link configures the link status of port8 when gpif_mode[2:0]=0b100. 0b0: link down 0b1: link up r/w 0b0 9:8 p8_phy_xfc[1:0] enables flow control of port8 when gpif_mode[2:0]=0b100. 0b00 ? tx/rx 802.3x flow control are disabled. 0b01 ? tx 802.3x flow control is disabled and rx 802.3x flow control is enabled. 0b10 ?tx 802.3x flow control is enabled and rx 802.3x flow control is disabled. 0b10: tx 802.3x flow control is enabled and rx 802.3x flow control is disabled. 0b11 ? tx/rx 802.3x flow control are enabled. r/w 0b11 10 p8_phy_spd configures the speed of port8 when gpif_mode[2:0]=0b100. 0b00: 10m 0b01: 100m r/w 0b0 (strapping) 0x0050 11 internal use r/w 0b0
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 83 track id: jatr-1076-21 rev. 1.1 reg. bits name description r/w default 12 p8rxc_delay rgmii timing compensatio n. the compensation is only valid when gmii_mode= 0b001. 0b0: disable 0b1: to add a 1.5ns delay on p8rxc r/w 0b1 (strapping) 13 p8txc_delay rgmii timing compensatio n. the compensation is only valid when gmii_mode= 0b001. 0b0: disable 0b1: to add a 1.5ns delay on p8txc r/w 0b1 (strapping) 15:14 gpif_mode[4:3] 0b11: mii/gmii/rgmii mode others: reserved. r/w 0b11 (strapping) 10.3.16. 0x0058 ~ 0x5a: port vlan index control register 0-2 (pvicr0-2) table 51. 0x0058 ~ 0x005a: port vlan index control register 0-2 (pvicr0-2) reg. bits name description r/w default 3:0 p0pvid[3:0] when en_vlan_tbl=0, p0pvid[3:0] can be configured from 0x0 to 0xf. when en_vlan_tbl=1, p0pvid[3:0] is fixed as 0x0 (used to point to the vid of register vidcr0 (0x0016)). the switch uses this vid as an index to find the member set in the 4096 vlan tables. r/w 0x0 7:4 p1pvid[3:0] when en_vlan_tbl=0, p1pvid[3:0] can be configured from 0x0 to 0xf. when en_vlan_tbl=1, p1pvid[3:0] is fixed as 0x1 (used to point to the vid of register vidcr1 (0x0018)). the switch uses this vid as an index to find the member set in the 4096 vlan tables. r/w 0x1 11:8 p2pvid[3:0] when en_vlan_tbl=0, p2pvid[3:0] can be configured from 0x0 to 0xf. when en_vlan_tbl=1, p2pvid[3:0] is fixed as 0x2 (used to point to the vid of register vidcr2 (0x001a)). the switch uses this vid as an index to find the member set in the 4096 vlan tables. r/w 0x2 0x0058 15:12 p3pvid[3:0] when en_vlan_tbl=0, p3pvid[3:0] could be configured from 0x0 to 0xf. when en_vlan_tbl=1, p3pvid[3:0] is fixed as 0x3. which is used to point to the vid of register vidcr3 (0x001c). the switch uses this vid as an index to find the member set in the 4096 vlan tables. r/w 0x3 3:0 p4pvid[3:0] same as p0pvid[3:0] r/w 0x4 7:4 p5pvid[3:0] same as p0pvid[3:0] r/w 0x5 11:8 p6pvid[3:0] same as p0pvid[3:0] r/w 0x6 0x0059 15:12 p7pvid[3:0] same as p0pvid[3:0] r/w 0x7
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 84 track id: jatr-1076-21 rev. 1.1 reg. bits name description r/w default 3:0 p8pvid[3:0] same as p0pvid[3:0] r/w 0x8 0x005a 15:4 reserved r/w 0x000 10.4. registers description part ii 10.4.1. 0x0100: reset control register (rcr) table 52. 0x0100: reset control register (rcr) reg. bits name description r/w default 0 chip_reset reset the system to the power-on initial state. - download configuration from strap pin and eeprom - start embedded sram bist (build in self test) - clear all the lookup and vlan tables - reset all registers to default values - restart auto-negotiation process 0b0: normal 0b1: start chip reset w/sc 0b0 1 soft_reset soft reset. a soft reset will reset the system similar to a power-on reset except that the user configuration will not be cleared: - restart the auto-negotiation process - clear fifo and re-start packet buffer link list 0b0: normal 0b1: start soft reset w/sc 0b0 2 mib_reset reset the mib counter. 0b0: normal 0b1: reset the mib counter w/sc 0b0 0x0100 15:3 reserved 0x0000 10.4.2. 0x0104: chip version control register (cvcr) table 53. 0x0104: chip version control register (cvcr) reg. bits name description r/w default 3:0 chip_ver[3:0] chip version indication. this register shows the version number of this chip. ro 0x1 0x0104 15:4 reserved 0x000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 85 track id: jatr-1076-21 rev. 1.1 10.4.3. 0x010f: enable vlan table control register (evtcr) table 54. 0x010f: enable vlan table control register (evtcr) reg. bits name description r/w default 0 en_vlan_tbl enables 4096 vlan tables. 0b0: disable 0b1: enable r/w 0b0 0x010f 15:1 reserved 0x0000 10.4.4. 0x0118 ~ 0x011c: phy acce ss control register 0-4 (phyacr0-4) table 55. 0x0118 ~ 0x011c: phy access control register 0-4 (phyacr0-4) reg. bits name description r/w default 0 phy_exec command to access the phy register according to phy_rw, phy_add, phy_reg, or phy_data_out. this bit is self-cleared once the access is complete. 0b0: access complete 0b1: start to access phy register r/w 0b0 1 phy_rw phy register read/write command. 0b1: the access is a write access. 0b0: the access is a read access. r/w 0b0 0x0118 15:2 reserved 0x0000 4:0 phy_addr[4:0] phy addres s to be accessed. r/w 0x00 0x0119 15:5 reserved 0x000 4:0 phy_reg[4:0] ph y register to be accessed. r/w 0x00 0x011a 15:5 reserved 0x000 0x011b 15:0 phy_data_in[15:0] data read from the phy register. this register is only valid when the access is a write access. r/w 0x0000 0x011c 15:0 phy_data_out[15:0] data to write to the phy register. this register is only valid when the access is a write access. ro 0x0000 10.4.5. 0x0120 ~ 0x0155: port n mib counter (p n mib_cnta, p n mib_cntb, and p n mib_cntc; n =0 - 8) table 56. 0x0120 ~ 0x0155: port n mib counter (pnmib_cnta, pnmib_cntb, and pnmib_cntc; n=0 - 8) reg. bits name description r/w default port 0 mib counter a 0-1 (p0mib_cnta0-1) 0x0120 15:0 mib0_cnta[15:0] lsb of port 0 mib counter group a. ro 0x0000 0x0121 15:0 mib0_cnta[31:16] msb of port 0 mib counter group a. ro 0x0000 port 0 mib counter b 0-1 (p0mib_cntb0-1) 0x0122 15:0 mib0_cntb[15:0] lsb of port 0 mib counter group b. ro 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 86 track id: jatr-1076-21 rev. 1.1 reg. bits name description r/w default 0x0123 15:0 mib0_cntb[31:16] msb of port 0 mib counter group b. ro 0x0000 port 0 mib counter c 0-1 (p0mib_cntc0-1) 0x0124 15:0 mib0_cntc[15:0] lsb of port 0 mib counter group c. ro 0x0000 0x0125 15:0 mib0_cntc[31:16] msb of port 0 mib counter group c. ro 0x0000 port 1 mib counter a 0-1 (p1mib_cnta0-1) 0x0126 15:0 mib1_cnta[15:0] lsb of port 1 mib counter group a. ro 0x0000 0x0127 15:0 mib1_cnta[31:16] msb of port 1 mib counter group a. ro 0x0000 port 1 mib counter b 0-1 (p1mib_cntb0-1) 0x0128 15:0 mib1_cntb[15:0] lsb of port 1 mib counter group b. ro 0x0000 0x0129 15:0 mib1_cntb[31:16] msb of port 1 mib counter group b. ro 0x0000 port 1 mib counter c 0-1 (p1mib_cntc0-1) 0x012a 15:0 mib0_cntc[15:0] lsb of port 1 mib counter group c. ro 0x0000 0x012b 15:0 mib0_cntc[31:16] msb of port 1 mib counter group c. ro 0x0000 port 2 mib counter a 0-1 (p2mib_cnta0-1) 0x012c 15:0 mib2_cnta[15:0] lsb of port 2 mib counter group a. ro 0x0000 0x012d 15:0 mib2_cnta[31:16] msb of port 2 mib counter group a. ro 0x0000 port 2 mib counter b 0-1 (p2mib_cntb0-1) 0x012e 15:0 mib2_cntb[15:0] lsb of port 2 mib counter group b. ro 0x0000 0x012f 15:0 mib2_cntb[31:16] msb of port 2 mib counter group b. ro 0x0000 port 2 mib counter c 0-1 (p2mib_cntc0-1) 0x0130 15:0 mib2_cntc[15:0] lsb of port 2 mib counter group c. ro 0x0000 0x0131 15:0 mib2_cntc[31:16] msb of port 2 mib counter group c. ro 0x0000 port 3 mib counter a 0-1 (p3mib_cnta0-1) 0x0132 15:0 mib3_cnta[15:0] lsb of port 3 mib counter group a. ro 0x0000 0x0133 15:0 mib3_cnta[31:16] msb of port 3 mib counter group a. ro 0x0000 port 3 mib counter b 0-1 (p3mib_cntb0-1) 0x0134 15:0 mib3_cntb[15:0] lsb of port 3 mib counter group b. ro 0x0000 0x0135 15:0 mib3_cntb[31:16] msb of port 3 mib counter group b. ro 0x0000 port 3 mib counter c 0-1 (p3mib_cntc0-1) 0x0136 15:0 mib3_cntc[15:0] lsb of port 3 mib counter group c. ro 0x0000 0x0137 15:0 mib3_cntc[31:16] msb of port 3 mib counter group c. ro 0x0000 port 4 mib counter a 0-1 (p4mib_cnta0-1) 0x0138 15:0 mib4_cnta[15:0] lsb of port 4 mib counter group a. ro 0x0000 0x0139 15:0 mib4_cnta[31:16] msb of port 4 mib counter group a. ro 0x0000 port 4 mib counter b 0-1 (p4mib_cntb0-1) 0x013a 15:0 mib4_cntb[15:0] lsb of port 4 mib counter group b. ro 0x0000 0x013b 15:0 mib4_cntb[31:16] msb of port 4 mib counter group b. ro 0x0000 port 4 mib counter c 0-1 (p4mib_cntc0-1) 0x013c 15:0 mib4_cntc[15:0] lsb of port 4 mib counter group c. ro 0x0000 0x013d 15:0 mib4_cntc[31:16] msb of port 4 mib counter group c. ro 0x0000 port 5 mib counter a 0-1 (p5mib_cnta0-1) 0x013e 15:0 mib5_cnta[15:0] lsb of port 5 mib counter group a. ro 0x0000 0x013f 15:0 mib5_cnta[31:16] msb of port 5 mib counter group a. ro 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 87 track id: jatr-1076-21 rev. 1.1 reg. bits name description r/w default port 5 mib counter b 0-1 (p5mib_cntb0-1) 0x0140 15:0 mib5_cntb[15:0] lsb of port 5 mib counter group b. ro 0x0000 0x0141 15:0 mib5_cntb[31:16] msb of port 5 mib counter group b. ro 0x0000 port 5 mib counter c 0-1 (p5mib_cntc0-1) 0x0142 15:0 mib5_cntc[15:0] lsb of port 5 mib counter group c. ro 0x0000 0x0143 15:0 mib5_cntc[31:16] msb of port 5 mib counter group c. ro 0x0000 port 6 mib counter a 0-1 (p6mib_cnta0-1) 0x0144 15:0 mib6_cnta[15:0] lsb of port 6 mib counter group a. ro 0x0000 0x0145 15:0 mib6_cnta[31:16] msb of port 6 mib counter group a. ro 0x0000 port 6 mib counter b 0-1 (p6mib_cntb0-1) 0x0146 15:0 mib6_cntb[15:0] lsb of port 6 mib counter group b. ro 0x0000 0x0147 15:0 mib6_cntb[31:16] msb of port 6 mib counter group b. ro 0x0000 port 6 mib counter c 0-1 (p6mib_cntc0-1) 0x0148 15:0 mib6_cntc[15:0] lsb of port 6 mib counter group c. ro 0x0000 0x0149 15:0 mib6_cntc[31:16] msb of port 6 mib counter group c. ro 0x0000 port 7 mib counter a 0-1 (p7mib_cnta0-1) 0x014a 15:0 mib7_cnta[15:0] lsb of port 7 mib counter group a. ro 0x0000 0x014b 15:0 mib7_cnta[31:16] msb of port 7 mib counter group a. ro 0x0000 port 7 mib counter b 0-1 (p7mib_cntb0-1) 0x014c 15:0 mib7_cntb[15:0] lsb of port 7 mib counter group b. ro 0x0000 0x014d 15:0 mib7_cntb[31:16] msb of port 7 mib counter group b. ro 0x0000 port 0 mib counter c 0-1 (p7mib_cntc0-1) 0x014e 15:0 mib7_cntc[15:0] lsb of port 7 mib counter group c. ro 0x0000 0x014f 15:0 mib7_cntc[31:16] msb of port 7 mib counter group c. ro 0x0000 port 8 mib counter a 0-1 (p8mib_cnta0-1) 0x0150 15:0 mib8_cnta[15:0] lsb of port 8 mib counter group a. ro 0x0000 0x0151 15:0 mib8_cnta[31:16] msb of port 8 mib counter group a. ro 0x0000 port 8 mib counter b 0-1 (p8mib_cntb0-1) 0x0152 15:0 mib8_cntb[15:0] lsb of port 8 mib counter group b. ro 0x0000 0x0153 15:0 mib8_cntb[31:16] msb of port 8 mib counter group b. ro 0x0000 port 8 mib counter c 0-1 (p8mib_cntc0-1) 0x0154 15:0 mib8_cntc[15:0] lsb of port 8 mib counter group c. ro 0x0000 0x0155 15:0 mib8_cntc[31:16] msb of port 8 mib counter group c. ro 0x0000 10.4.6. 0x0159 ~ 0x015d: port stat us register 0-4 (psr0-4) table 57. 0x0159 ~ 0x015d: port st atus register 0-4 (psr0-4) reg. bits name description r/w default 0x0159 1:0 p0spd[1:0] indicates the current speed of the port. 0b00: 10m 0b01: 100m 0b10: 1000m 0b11: reserved ro 0b00
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 88 track id: jatr-1076-21 rev. 1.1 reg. bits name description r/w default 2 p0dup indicates the current duplex status of the port. 0b0: half duplex 0b1: full duplex ro 0b0 3 reserved 0b0 4 p0link indicates the current link status. 0b0: link down 0b1: link up ro 0b0 5 p0txpause indicates the pause frame transmit ability of the port. 0b0: inactive 0b1: active ro 0b1 6 p0rxpause indicates the pause frame response ability of the port. 0b0: inactive 0b1: active ro 0b1 7 p0nway indicates auto-nego tiation enabled or disabled. 0b0: disable 0b1: enable ro 0b1 9:8 p1spd[1:0] same as p0spd[1:0] ro 0b00 10 p1dup same as p0dup ro 0b0 11 reserved 0b0 12 p1link same as p0link ro 0b1 13 p1txpause same as p0txpause ro 0b1 14 p1rxpause same as p0rxpause ro 0b1 15 p1nway same as p0nway ro 0b0 7:0 port 2 property status register same as port 0 property status register ro 0xe0 0x015a 15:8 port 3 property status register same as port 0 property status register ro 0xe0 7:0 port 4 property status register same as port 0 property status register ro 0xe0 0x015b 15:8 port 5 property status register same as port 0 property status register ro 0xe0 7:0 port 6 property status register same as port 0 property status register ro 0xe0 0x015c 15:8 port 7 property status register same as port 0 property status register ro 0xe0 7:0 port 8 property status register same as port 0 property status register ro 0xee 0x015d 15:8 reserved 0x00
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 89 track id: jatr-1076-21 rev. 1.1 10.4.7. 0x0170: eeprom status register (eepsr) table 58. 0x0170: eeprom status register (eepsr) reg. bits name description r/w default 0 eeprom_existence indicates the existence of eeprom. 0b0: eeprom does not exist 0b1: eeprom exists ro 0b0 1 internal use n/a ro 0b0 2 eeprom_rdy indicates the eeprom smi access is ready. ro 0b1 0x0170 15:3 reserved 0x0000 10.4.8. 0x0180 ~ 0x018a: lookup a nd vlan table engine access control table 59. 0x0180 ~ 0x018a: lookup and vlan table engine access control reg. bits name description r/w default lookup & vlan table access control register (lvtacr) 0 table_exec 0b0: no operation 0b1: start to access. self-cleared when the access is done r/w 0b0 7:1 reserved 0x00 9:8 table_cmd[1:0] 0b00: look-up table read 0b01: look-up table write 0b10: vlan table read 0b11: vlan table write r/w 0b00 0x0180 15:10 reserved 0x00 0x0181 15:0 reserved 0x0000 lookup & vlan table data input register 0-3 (lvtdir0-3) 0x0182 15:0 wd[15:0] r/w 0x0000 0x0183 15:0 wd[31:16] r/w 0x0000 0x0184 15:0 wd[47:32] r/w 0x0000 0x0185 15:0 wd[63:48] r/w 0x0000 5:0 wd[69:64] write data buffer [69:0] r/w 0x00 0x0186 15:6 reserved 0x000 0x0187 15:0 reserved 0x0000 lookup & vlan table data output register 0-2 (lvtdor0-2) 0x0188 15:0 rd[15:0] r/w 0x0000 0x0189 15:0 rd[31:16] r/w 0x0000 0x018a 15:0 rd[47:32] r/w 0x0000
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 90 track id: jatr-1076-21 rev. 1.1 11. electrical characteristics 11.1. absolute maximum ratings warning: absolute maximum ratings are limits beyond which permanent damage may be caused to the device, or device reliability will be affected . all voltages are specified reference to gnd unless otherwise specified. table 60. absolute maximum ratings parameter min max units storage temperature -55 150 c vcc supply referenced to gnd -0.5 4.0 v digital input voltage -0.5 vdd v dc output voltage -0.5 vdd v 11.2. operating range table 61. operating range parameter min typical max units ambient operating temperature (ta) 0 n/a 70 c 3.3v vcc supply voltage range 3.15 3.3 3.45 v 1.8v vcc supply voltage range 1.71 1.8 1.89 v 1.5v vcc supply voltage range 1.43 1.5 1.57 v 11.3. thermal characteristics tbd 11.4. dc characteristics table 62. dc characteristics parameter sym condition min typical max units system idle power supply current for 3.3v i cc33 20 ma power supply current for 1.8v i cc18 240 ma power supply current for 1.5v i cc15 170 ma total power consumption for all ports ps 753 mw 1000m active power supply current for 3.3v i cc33 50 ma
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 91 track id: jatr-1076-21 rev. 1.1 parameter sym condition min typical max units power supply current for 1.8v i cc18 240 ma power supply current for 1.5v i cc15 280 ma total power consumption for all ports ps 1017 mw 100m active power supply current for 3.3v i cc33 50 ma power supply current for 1.8v i cc18 240 ma power supply current for 1.5v i cc15 170 ma total power consumption for all ports ps 852 mw 10m active power supply current for 3.3v i cc33 50 ma power supply current for 1.8v i cc18 240 ma power supply current for 1.5v i cc15 170 ma total power consumption for all ports ps 852 mw vddio = 3.3v ttl input high voltage v ih 2.0 v ttl input low voltage v il 0.8 v output high voltage v oh 2.4 v output low voltage v ol 0.4 v vddio = 2.5v ttl input high voltage v ih tbd v ttl input low voltage v il tbd v output high voltage v oh tbd v output low voltage v ol tbd v 11.5. ac characteristics 11.5.1. eeprom smi (sck/sda) timing characteristics tbd 11.5.2. smi (mdc/mdio) timing characteristics tbd
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 92 track id: jatr-1076-21 rev. 1.1 11.5.3. gmii/mii timing characteristics p8txd[7:0], p8txen t tx_su t tx_ho p8gtxc/ p8txc t tx_cyc p8rxd[7:0], p8rxdv t rx_su t rx_ho p8rxc t rx_cyc figure 25. gmii/mii timing characteristics table 63. gmii/mii timing characteristics parameter sym description/condition i/o min typical max units 1000base-t p8gtxc output cycle time t tx_cyc p8gtxc 125mhz clock output. o tbd ns 1000base-t p8rxc input cycle time t rx_cyc p8rxc 125mhz clock input. i tbd ns 1000base-t p8txd[7:0] and p8txen output setup time t tx_su o tbd ns 1000base-t p8txd[7:0] and gtxclt output hold time t tx_ho o tbd ns 1000base-t p8rxd[7:0] and p8rxclt input setup time t rx_su i tbd ns 1000base-t p8rxd[7:0] and p8rxclt input hold time t rx_ho i tbd ns 100base-t p8txc and p8rxc input cycle time t tx&rx_cyc p8txc and p8rxc 25mhz clock input. i tbd ns
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 93 track id: jatr-1076-21 rev. 1.1 parameter sym description/condition i/o min typical max units 100base-t p8txd[3:0] and p8txen output setup time t tx_su o tbd ns 100base-t p8txd[3:0] and gtxclt output hold time t tx_ho o tbd ns 100base-t p8rxd[3:0] and p8rxclt input setup time t rx_su i tbd ns 100base-t p8rxd[3:0] and p8rxclt input hold time t rx_ho i tbd ns 10base-t p8txc and p8rxc input cycle time t tx&rx_cyc p8txc and p8rxc 2.5mhz clock input. i tbd ns 10base-t p8txd[3:0] and p8txen output setup time t tx_su o tbd ns 10base-t p8txd[3:0] and gtxclt output hold time t tx_ho o tbd ns 10base-t p8rxd[3:0] and p8rxclt input setup time t rx_su i tbd ns 10base-t p8rxd[3:0] and p8rxclt input hold time t rx_ho i tbd ns 11.5.4. rgmii timing characteristics p8txd[3:0], p8txctl t tx_su t tx_ho p8txc t tx_cyc p8rxd[3:0], p8rxctl t rx_su t rx_ho p8rxc t rx_cyc figure 26. rgmii timing characteristics
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 94 track id: jatr-1076-21 rev. 1.1 table 64. rgmii timing characteristics parameter sym description/condition i/o min typical max units 1000base-t p8txc output cycle time t tx_cyc p8txc 125mhz clock output. o tbd ns 1000base-t p8rxc input cycle time t rx_cyc p8rxc 125mhz clock input. i tbd ns 1000base-t p8txd[3:0] and p8txclt output setup time t tx_su disable p8txc delay (p8txc_delay=0b0). o tbd ns 1000base-t p8txd[3:0] and p8txclt output hold time t tx_ho disable p8txc delay (p8txc_delay=0b0). o tbd ns 1000base-t p8txd[3:0] and p8txclt output setup time with p8txc delay t tx_su_d enable p8txc delay (p8txc_delay=0b1). o tbd ns 1000base-t p8txd[3:0], p8txclt output hold time with p8txc delay t tx_ho_d enable p8txc delay (p8txc_delay=0b1). o tbd ns 1000base-t p8rxd[3:0] and p8rxclt input setup time t rx_su disable p8rxc delay (p8rxc_delay=0b0). i tbd ns 1000base-t p8rxd[3:0] and rxclt input hold time t rx_ho disable p8rxc delay (p8rxc_delay=0b0). i tbd ns 1000base-t p8rxd[3:0] and p8rxclt input setup time with p8rxc delay t rx_su_d enable p8rxc delay (p8rxc_delay=0b1). i tbd ns 1000base-t p8rxd[3:0] and p8rxclt input hold time with p8rxc delay t rx_ho_d enable p8rxc delay (p8rxc_delay=0b1). i tbd ns
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 95 track id: jatr-1076-21 rev. 1.1 12. mechanical dimensions symbol dimensions in in ches dimensions in mm 1. dimensions d & e do not include interlead flash. min typical max min typical max 2. dimension b does not include dambar rotrusion/intrusion. a - - 0.134 - - 3.40 3. controlling dimension: millimeter a1 0.004 0.010 0.036 0.10 0.25 0.91 4. general appearance spec. should be based on final visual inspection. a2 0.102 0.112 0.122 2.60 2.85 3.10 b 0.005 0.009 0.013 0.12 0.22 0.32 c 0.002 0.006 0.010 0.05 0.15 0.25 d 0.541 0.551 0.561 13.75 14.00 14.25 title: e 0.778 0.787 0.797 19.75 20.00 20.25 -cu l/f, footprint 3.2 mm e 0.010 0.020 0.030 0.25 0.5 0.75 leadframe material: hd 0.665 0.677 0.689 16.90 17.20 17.50 approve doc. no. he 0.902 0.913 0.925 22.90 23.20 23.50 version 1.1 l 0.027 0.035 0.043 0.68 0.88 1.08 page l1 0.053 0.063 0.073 1.35 1.60 1.85 check dwg no. q128 - 1 y - - 0.004 - - 0.10 date 12 february 2003 0 - 12 0 - 12 realtek semiconductor corp.
RTL8366/rtl8369 datasheet 6/9-port 10/100/1000mbps switch controller 96 track id: jatr-1076-21 rev. 1.1 13. ordering information table 65. ordering information part number package status RTL8366-gr 128-pin pqfp in ?green? package rtl8369-gr 128-pin pqfp in ?green? package note: see page 9 and 10 for package identification information. realtek semiconductor corp. headquarters no. 2, industry east road ix, science-based industrial park, hsinchu, 300, taiwan, r.o.c. tel: 886-3-5780211 fax: 886-3-5776047 www.realtek.com.tw


▲Up To Search▲   

 
Price & Availability of RTL8366

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X